public class LzopInputStream
extends org.apache.hadoop.io.compress.BlockDecompressorStream
| Constructor and Description |
|---|
LzopInputStream(InputStream in,
org.apache.hadoop.io.compress.Decompressor decompressor,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected int |
decompress(byte[] b,
int off,
int len) |
long |
getCompressedBytesRead() |
protected int |
getCompressedData()
Read checksums and feed compressed block data into decompressor.
|
protected void |
readHeader(InputStream in)
Read and verify an lzo header, setting relevant block checksum options
and ignoring most everything else.
|
available, checkStream, mark, markSupported, read, read, reset, skipgetPos, seek, seekToNewSourcereadpublic LzopInputStream(InputStream in, org.apache.hadoop.io.compress.Decompressor decompressor, int bufferSize) throws IOException
IOExceptionprotected void readHeader(InputStream in) throws IOException
in - InputStreamIOException - if there is a error in lzo headerprotected int decompress(byte[] b,
int off,
int len)
throws IOException
decompress in class org.apache.hadoop.io.compress.BlockDecompressorStreamIOExceptionprotected int getCompressedData()
throws IOException
getCompressedData in class org.apache.hadoop.io.compress.BlockDecompressorStreamIOExceptionpublic long getCompressedBytesRead()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.io.compress.DecompressorStreamIOExceptionCopyright © 2016. All Rights Reserved.