org.apache.hadoop.io.compress
Class GzipCodec.GzipInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.hadoop.io.compress.CompressionInputStream
          extended by org.apache.hadoop.io.compress.GzipCodec.GzipInputStream
All Implemented Interfaces:
Closeable
Enclosing class:
GzipCodec

protected static class GzipCodec.GzipInputStream
extends CompressionInputStream


Field Summary
 
Fields inherited from class org.apache.hadoop.io.compress.CompressionInputStream
in
 
Constructor Summary
protected GzipCodec.GzipInputStream(org.apache.hadoop.io.compress.DecompressorStream in)
          Allow subclasses to directly set the inflater stream.
  GzipCodec.GzipInputStream(InputStream in)
           
 
Method Summary
 int available()
           
 void close()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] data, int offset, int len)
          Read bytes from the stream.
 void reset()
           
 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
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GzipCodec.GzipInputStream

public GzipCodec.GzipInputStream(InputStream in)
                          throws IOException
Throws:
IOException

GzipCodec.GzipInputStream

protected GzipCodec.GzipInputStream(org.apache.hadoop.io.compress.DecompressorStream in)
Allow subclasses to directly set the inflater stream.

Method Detail

available

public int available()
              throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

read

public int read()
         throws IOException
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.

Throws:
IOException

skip

public long skip(long offset)
          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.

Throws:
IOException

markSupported

public boolean markSupported()
Overrides:
markSupported in class InputStream

mark

public void mark(int readlimit)
Overrides:
mark in class InputStream

reset

public void reset()
           throws IOException
Overrides:
reset in class InputStream
Throws:
IOException


Copyright © 2008 The Apache Software Foundation