org.apache.cassandra.streaming.compress
Class CompressedInputStream
java.lang.Object
java.io.InputStream
org.apache.cassandra.streaming.compress.CompressedInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class CompressedInputStream
- extends java.io.InputStream
InputStream which reads data from underlining source with given CompressionInfo
.
Methods inherited from class java.io.InputStream |
available, close, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bufferOffset
protected long bufferOffset
validBufferBytes
protected int validBufferBytes
CompressedInputStream
public CompressedInputStream(java.io.InputStream source,
CompressionInfo info)
- Parameters:
source
- Input source to read compressed data frominfo
- Compression info
read
public int read()
throws java.io.IOException
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
position
public void position(long position)
getTotalCompressedBytesRead
public long getTotalCompressedBytesRead()
Copyright © 2013 The Apache Software Foundation