@JSFunction
    public String readChar() throws IOException {
        int i = getReader().read();
        if (i == -1)
            return null;
        char[] charArray = { (char) i };
        return new String(charArray);
    }
@ JSFunction public String readChar ( ) throws IOException { int i = getReader ( ) . read ( ) ; if ( i == - 1 ) return null ; char [ ] charArray = { ( char ) i } ; return new String ( charArray ) ; }
Read a character.

@exception IOException if an error occurred while accessing the file
associated with this object, or EOFException if the object
reached the end of the file