Code example for Inflater

Methods: setInput

0
                      buf[0] = 0; 
                      len = 1; 
                      eof = true; 
                  } 
                   
                  inf.setInput(buf, 0, len); 
              } 
 
              private boolean eof = false; 
          }; 
      } 
      if (this.getAlgorithm() == ZLIB) 
      { 
          return new InflaterInputStream(this.getInputStream()) 
          { 
              // If the "nowrap" inflater option is used the stream can  
              // apparently overread - we override fill() and provide 
              // an extra byte for the end of the input stream to get 
              // around this. 
              // 
              // Totally weird...