public void toASCII(PrintWriter pw,
                        boolean addName,
                        String rootName,
                        boolean newLine) {
    """
	Returns a string representation of the variables value. This
	is really foreshadowing functionality for Server types, but
	as it may come in useful for clients it is added here. Simple
	types (example: DFloat32) will return a single value. DConstuctor
	and DVector types will be flattened. DStrings and DURL's will
	have double quotes around them.
	
	@param addName is a flag indicating if the variable name should
	appear at the begining of the returned string.
    """

        if (addName)
            pw.print(", ");

        String s = getValue();

        // Get rid of null terminations on strings
        if ((s.length() > 0) && s.charAt(s.length() - 1) == ((char) 0)) { // jc mod

            if (_Debug) System.out.println("Removing null termination from string \"" + getEncodedName() + "\".");

            char cArray[] = s.toCharArray();
            s = new String(cArray, 0, cArray.length - 1);
        }

        pw.print("\"" + s + "\"");

        if (newLine)
            pw.print("\n");

    }
public void toASCII(PrintWriter pw,
                        boolean addName,
                        String rootName,
                        boolean newLine) {

        if (addName)
            pw.print(", ");

        String s = getValue();

        // Get rid of null terminations on strings
        if ((s.length() > 0) && s.charAt(s.length() - 1) == ((char) 0)) { // jc mod

            if (_Debug) System.out.println("Removing null termination from string \"" + getEncodedName() + "\".");

            char cArray[] = s.toCharArray();
            s = new String(cArray, 0, cArray.length - 1);
        }

        pw.print("\"" + s + "\"");

        if (newLine)
            pw.print("\n");

    }
public void toASCII ( PrintWriter pw , boolean addName , String rootName , boolean newLine ) { if ( addName ) pw . print ( ", " ) ; String s = getValue ( ) ; // Get rid of null terminations on strings
 if ( ( s . length ( ) > 0 ) && s . charAt ( s . length ( ) - 1 ) == ( ( char ) 0 ) ) { // jc mod
 if ( _Debug ) System . out . println ( "Removing null termination from string \"" + getEncodedName ( ) + "\"." ) ; char cArray [ ] = s . toCharArray ( ) ; s = new String ( cArray , 0 , cArray . length - 1 ) ; } pw . print ( "\"" + s + "\"" ) ; if ( newLine ) pw . print ( "\n" ) ; }
Returns a string representation of the variables value. This
is really foreshadowing functionality for Server types, but
as it may come in useful for clients it is added here. Simple
types (example: DFloat32) will return a single value. DConstuctor
and DVector types will be flattened. DStrings and DURL's will
have double quotes around them.

@param addName is a flag indicating if the variable name should
appear at the begining of the returned string.
Returns a string representation of the variables value . This is really foreshadowing functionality for Server types but as it may come in useful for clients it is added here . Simple types ( example : DFloat32 ) will return a single value . DConstuctor and DVector types will be flattened . DStrings and DURL s will have double quotes around them .