sbNewRepresentation.append(" C"); sbNewRepresentation.append(String.valueOf(value + 1)); sbNewRepresentation.append(","); } return sbNewRepresentation.toString().substring(0, sbNewRepresentation.length() - 1); }
sbNewRepresentation.append( " O" ); sbNewRepresentation.append( String.valueOf( value ) ); sbNewRepresentation.append( " " );  sbNewRepresentation.append( " C" ); sbNewRepresentation.append( String.valueOf( value + 1 ) ); sbNewRepresentation.append( "," ); } return sbNewRepresentation.toString( ).substring( 0, sbNewRepresentation.length( ) - 1 ); }
    private String getConvertedOrthogonalSampleDataRepresentation(String sOldRepresentation)    {        StringTokenizer strtok = new StringTokenizer(sOldRepresentation, ","); //$NON-NLS-1$        NumberFormat nf = NumberFormat.getNumberInstance();        StringBuffer sbNewRepresentation = new StringBuffer(""); //$NON-NLS-1$        int iValueCount = 0;        while (strtok.hasMoreTokens())        {            String sElement = strtok.nextToken().trim();            double value;            try            {                value = nf.parse(sElement).doubleValue();                if (value < 0)                {                    // If the value is negative, use an arbitrary positive value                    value = 4.0 + iValueCount;                    iValueCount++;                }            }            catch (ParseException e )            {                value = 4.0 + iValueCount;                iValueCount++;            }                        sbNewRepresentation.append("H"); //$NON-NLS-1$            sbNewRepresentation.append(String.valueOf(value + 2));            sbNewRepresentation.append(" "); //$NON-NLS-1$            sbNewRepresentation.append(" L"); //$NON-NLS-1$            sbNewRepresentation.append(String.valueOf(value -1));            sbNewRepresentation.append(" "); //$NON-NLS-1$            sbNewRepresentation.append(" O"); //$NON-NLS-1$            sbNewRepresentation.append(String.valueOf(value));            sbNewRepresentation.append(" "); //$NON-NLS-1$            sbNewRepresentation.append(" C"); //$NON-NLS-1$            sbNewRepresentation.append(String.valueOf(value + 1));            sbNewRepresentation.append(","); //$NON-NLS-1$        }        return sbNewRepresentation.toString().substring(0, sbNewRepresentation.length() - 1);    }