org.apache.hadoop.io.compress
Class DefaultCodec.DefaultCompressionInputStream
java.lang.Object
java.io.InputStream
org.apache.hadoop.io.compress.CompressionInputStream
org.apache.hadoop.io.compress.DefaultCodec.DefaultCompressionInputStream
- All Implemented Interfaces:
- Closeable
- Direct Known Subclasses:
- GzipCodec.GzipInputStream
- Enclosing class:
- DefaultCodec
protected static class DefaultCodec.DefaultCompressionInputStream
- extends CompressionInputStream
Method Summary |
int |
available()
|
void |
close()
|
int |
read()
|
int |
read(byte[] data,
int offset,
int len)
Read bytes from the stream. |
void |
resetState()
Reset the compression to the initial state. |
long |
skip(long offset)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCodec.DefaultCompressionInputStream
public DefaultCodec.DefaultCompressionInputStream(InputStream in)
DefaultCodec.DefaultCompressionInputStream
protected DefaultCodec.DefaultCompressionInputStream(InflaterInputStream in)
- Allow subclasses to directly set the inflater stream
available
public int available()
throws IOException
- Overrides:
available
in class InputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class CompressionInputStream
- Throws:
IOException
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
read
public int read(byte[] data,
int offset,
int len)
throws IOException
- Description copied from class:
CompressionInputStream
- Read bytes from the stream.
Made abstract to prevent leakage to underlying stream.
- Specified by:
read
in class CompressionInputStream
- Throws:
IOException
skip
public long skip(long offset)
throws IOException
- Overrides:
skip
in class InputStream
- Throws:
IOException
resetState
public void resetState()
throws IOException
- Description copied from class:
CompressionInputStream
- Reset the compression to the initial state. Does not reset the underlying
stream.
- Specified by:
resetState
in class CompressionInputStream
- Throws:
IOException
Copyright © 2006 The Apache Software Foundation