Code example for InputStream

Methods: read

0
    contentLength--;
    if (this.buffer.size() > 0) {
      final int returnValue = this.buffer.remove(0);
      return returnValue;
    } 
    return wrappedInputStream.read();
  } 
 
  @Override 
  public void close() throws IOException { 
    wrappedInputStream.close();
  } 
 
  @Override 
  public synchronized void mark(final int readlimit) {
    wrappedInputStream.mark(readlimit);
  } 
 
  @Override 
  public boolean markSupported() {