Code example for InputStream

Methods: available

0
   * @param in The input stream to be compressed. 
   * @throws IOException 
   */ 
  protected CompressionInputStream(InputStream in) throws IOException {
    if (!(in instanceof Seekable) || !(in instanceof PositionedReadable)) {
        this.maxAvailableData = in.available();
    } 
    this.in = in;
  } 
 
  @Override 
  public void close() throws IOException { 
    in.close();
  } 
   
  /** 
   * Read bytes from the stream. 
   * Made abstract to prevent leakage to underlying stream. 
   */ 
  @Override 
Connect your IDE to all the code out there  Get Codota for Java