Code example for PushbackInputStream

Methods: close

0
    public boolean isEndOfInput() throws Exception { 
        return !hasNextChunk(); 
    } 
 
    public void close() throws Exception { 
        in.close();
    } 
 
    public Object nextChunk() throws Exception {
        if (!hasNextChunk()) { 
            return null; 
        } 
 
        final int availableBytes = in.available();
        final int chunkSize;
        if (availableBytes <= 0) {
            chunkSize = this.chunkSize;
        } else { 
            chunkSize = Math.min(this.chunkSize, in.available());
        } 
Stop searching for code, let great code find you!  Add Codota to your java IDE