org.apache.hadoop.io.compress
Class LzopCodec.LzopInputStream

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

protected static class LzopCodec.LzopInputStream
extends CompressionInputStream


Field Summary
 
Fields inherited from class org.apache.hadoop.io.compress.CompressionInputStream
in
 
Constructor Summary
LzopCodec.LzopInputStream(InputStream in, Decompressor decompressor, int bufferSize)
           
 
Method Summary
 int available()
           
 void close()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b, int off, int len)
          Read bytes from the stream.
protected  void readHeader(InputStream in)
          Read and verify an lzo header, setting relevant block checksum options and ignoring most everything else.
 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 n)
           
 
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

LzopCodec.LzopInputStream

public LzopCodec.LzopInputStream(InputStream in,
                                 Decompressor decompressor,
                                 int bufferSize)
                          throws IOException
Throws:
IOException
Method Detail

readHeader

protected void readHeader(InputStream in)
                   throws IOException
Read and verify an lzo header, setting relevant block checksum options and ignoring most everything else.

Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
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

read

public int read()
         throws IOException
Specified by:
read in 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:
read in class CompressionInputStream
Throws:
IOException

skip

public long skip(long n)
          throws IOException
Overrides:
skip in class InputStream
Throws:
IOException

available

public int available()
              throws IOException
Overrides:
available in class InputStream
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