org.apache.hadoop.io.compress
Class DefaultCodec.DefaultCompressionInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.hadoop.io.compress.CompressionInputStream
          extended by 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


Field Summary
 
Fields inherited from class org.apache.hadoop.io.compress.CompressionInputStream
in
 
Constructor Summary
protected DefaultCodec.DefaultCompressionInputStream(InflaterInputStream in)
          Allow subclasses to directly set the inflater stream
  DefaultCodec.DefaultCompressionInputStream(InputStream in)
           
 
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 decompressor to its initial state and discard any buffered data, as the underlying stream may have been repositioned.
 long skip(long offset)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCodec.DefaultCompressionInputStream

public DefaultCodec.DefaultCompressionInputStream(InputStream in)

DefaultCodec.DefaultCompressionInputStream

protected DefaultCodec.DefaultCompressionInputStream(InflaterInputStream in)
Allow subclasses to directly set the inflater stream

Method Detail

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 decompressor to its initial state and discard any buffered data, as the underlying stream may have been repositioned.

Specified by:
resetState in class CompressionInputStream
Throws:
IOException


Copyright © 2006 The Apache Software Foundation