org.apache.hadoop.io.compress
Class DecompressorStream
java.lang.Object
   java.io.InputStream
java.io.InputStream
       org.apache.hadoop.io.compress.CompressionInputStream
org.apache.hadoop.io.compress.CompressionInputStream
           org.apache.hadoop.io.compress.DecompressorStream
org.apache.hadoop.io.compress.DecompressorStream
- All Implemented Interfaces: 
- Closeable, Seekable
- Direct Known Subclasses: 
- BlockDecompressorStream
- public class DecompressorStream 
- extends CompressionInputStream
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
decompressor
protected Decompressor decompressor
buffer
protected byte[] buffer
eof
protected boolean eof
closed
protected boolean closed
DecompressorStream
public DecompressorStream(InputStream in,
                          Decompressor decompressor,
                          int bufferSize)
                   throws IOException
- Throws:
- IOException
DecompressorStream
public DecompressorStream(InputStream in,
                          Decompressor decompressor)
                   throws IOException
- Throws:
- IOException
DecompressorStream
protected DecompressorStream(InputStream in)
                      throws IOException
- Allow derived classes to directly set the underlying stream.
 
- Parameters:
- in- Underlying input stream.
- Throws:
- IOException
 
read
public int read()
         throws IOException
- 
- Specified by:
- readin class- InputStream
 
- 
- Throws:
- IOException
 
read
public int read(byte[] b,
                int off,
                int len)
         throws IOException
- Description copied from class: CompressionInputStream
- Read bytes from the stream.
 Made abstract to prevent leakage to underlying stream.
 
- 
- Specified by:
- readin class- CompressionInputStream
 
- 
- Throws:
- IOException
 
decompress
protected int decompress(byte[] b,
                         int off,
                         int len)
                  throws IOException
- 
- Throws:
- IOException
 
getCompressedData
protected int getCompressedData()
                         throws IOException
- 
- Throws:
- IOException
 
checkStream
protected void checkStream()
                    throws IOException
- 
- Throws:
- IOException
 
resetState
public void resetState()
                throws IOException
- Description copied from class: CompressionInputStream
- Reset the decompressor to its initial state and discard any buffered data,
 as the underlying stream may have been repositioned.
 
- 
- Specified by:
- resetStatein class- CompressionInputStream
 
- 
- Throws:
- IOException
 
skip
public long skip(long n)
          throws IOException
- 
- Overrides:
- skipin class- InputStream
 
- 
- Throws:
- IOException
 
available
public int available()
              throws IOException
- 
- Overrides:
- availablein class- InputStream
 
- 
- Throws:
- IOException
 
close
public void close()
           throws IOException
- 
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- CompressionInputStream
 
- 
- Throws:
- IOException
 
markSupported
public boolean markSupported()
- 
- Overrides:
- markSupportedin class- InputStream
 
- 
 
mark
public void mark(int readlimit)
- 
- Overrides:
- markin class- InputStream
 
- 
 
reset
public void reset()
           throws IOException
- 
- Overrides:
- resetin class- InputStream
 
- 
- Throws:
- IOException
 
Copyright © 2009 The Apache Software Foundation