org.apache.cassandra.streaming.compress
Class CompressedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by 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.


Field Summary
protected  long bufferOffset
           
protected  int validBufferBytes
           
 
Constructor Summary
CompressedInputStream(java.io.InputStream source, CompressionInfo info)
           
 
Method Summary
 long getTotalCompressedBytesRead()
           
 void position(long position)
           
 int read()
           
 
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
 

Field Detail

bufferOffset

protected long bufferOffset

validBufferBytes

protected int validBufferBytes
Constructor Detail

CompressedInputStream

public CompressedInputStream(java.io.InputStream source,
                             CompressionInfo info)
Parameters:
source - Input source to read compressed data from
info - Compression info
Method Detail

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