Code example for Reader

Methods: read

0
            } 
            return this.lastChar;
        }  
        int c;
        try { 
            c = this.reader.read();
        } catch (IOException exc) {
            throw new JSONException(exc);
        } 
 
        if (c <= 0) { // End of stream
        	this.lastChar = 0;
            return 0; 
        }  
    	this.index += 1;
    	this.lastChar = (char) c;
        return this.lastChar;
    } 
 
 
    /**