Code example for PushbackInputStream

Methods: close

0
     * Closes the underlying stream. 
     *  
     * @throws IOException on I/O errors. 
     */ 
    public void close() throws IOException { 
        in.close();
    } 
     
    /** 
     * @see java.io.InputStream#read() 
     */ 
    public int read() throws IOException { 
        int b = in.read();
         
        if (b == -1) {
            return -1; 
        } 
         
        if ((flags & CONVERT_CR) != 0 && b == '\r') {
            int c = in.read();
Connect your IDE to all the code out there  Get Codota for Java