Code example for StreamTokenizer

Methods: toString

0
     * An unchecked exception that is thrown when encountering a syntax 
     * or semantic error in the input. 
     */ 
    public static class ParseException extends IllegalArgumentException {
        ParseException(StreamTokenizer state, String expected) {
            super("expected " + expected + ", saw " + state.toString());
        } 
    } 
 
    // A sentinel instance used to indicate a null string. 
    static final String NULL_STRING = new String("<TypedProperties:NULL_STRING>");
 
    // Constants used to represent the supported types. 
    static final int TYPE_UNSET = 'x';
    static final int TYPE_BOOLEAN = 'Z';
    static final int TYPE_BYTE = 'I' | 1 << 8;
    // TYPE_CHAR: character literal syntax not supported; use short. 
    static final int TYPE_SHORT = 'I' | 2 << 8;
    static final int TYPE_INT = 'I' | 4 << 8;
    static final int TYPE_LONG = 'I' | 8 << 8;
Experience pair programming with AI  Get Codota for Java