org.apache.hadoop.io.compress
Class GzipCodec.GzipInputStream
java.lang.Object
  
java.io.InputStream
      
org.apache.hadoop.io.compress.CompressionInputStream
          
org.apache.hadoop.io.compress.GzipCodec.GzipInputStream
- All Implemented Interfaces: 
 - Closeable
 
- Enclosing class:
 - GzipCodec
 
protected static class GzipCodec.GzipInputStream
- extends CompressionInputStream
 
 
 
 
| 
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.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
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.
 
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