public class CompressedRandomAccessReader extends RandomAccessReader
RandomAccessReader.BufferedRandomAccessFileMark
buffer, bufferOffset, channel, DEFAULT_BUFFER_SIZE, markedPointer, owner
Modifier | Constructor and Description |
---|---|
protected |
CompressedRandomAccessReader(ChannelProxy channel,
CompressionMetadata metadata,
ICompressedFile file) |
Modifier and Type | Method and Description |
---|---|
protected java.nio.ByteBuffer |
allocateBuffer(int bufferSize,
BufferType bufferType) |
void |
deallocate() |
int |
getTotalBufferSize() |
long |
length() |
static CompressedRandomAccessReader |
open(ChannelProxy channel,
CompressionMetadata metadata) |
static CompressedRandomAccessReader |
open(ICompressedFile file) |
protected void |
reBuffer()
Read data from file starting from current currentOffset to populate buffer.
|
java.lang.String |
toString() |
bytesPastMark, bytesPastMark, bytesRemaining, close, current, getChannel, getFilePointer, getPath, getPosition, getPositionLimit, isEOF, mark, open, open, open, open, read, read, read, readBytes, reset, reset, seek
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
protected CompressedRandomAccessReader(ChannelProxy channel, CompressionMetadata metadata, ICompressedFile file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public static CompressedRandomAccessReader open(ChannelProxy channel, CompressionMetadata metadata)
public static CompressedRandomAccessReader open(ICompressedFile file)
protected java.nio.ByteBuffer allocateBuffer(int bufferSize, BufferType bufferType)
allocateBuffer
in class RandomAccessReader
public void deallocate()
deallocate
in class RandomAccessReader
protected void reBuffer()
RandomAccessReader
reBuffer
in class RandomAccessReader
public int getTotalBufferSize()
getTotalBufferSize
in class RandomAccessReader
public long length()
length
in class RandomAccessReader
public java.lang.String toString()
toString
in class RandomAccessReader
Copyright © 2015 The Apache Software Foundation