public final class CompressedChecksummedDataInput extends ChecksummedDataInput
DataInputPlus.DataInputStreamPlusbufferOffset, channelbuffer| Constructor and Description |
|---|
CompressedChecksummedDataInput(ChannelProxy channel,
ICompressor compressor,
long filePosition) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputPosition |
getSeekPosition()
Return a seekable representation of the current position.
|
long |
getSourcePosition()
Returns the position in the source file, which is different for getPosition() for compressed/encrypted files
and may be imprecise.
|
boolean |
isEOF()
Since an entire block of compressed data is read off of disk, not just a hint at a time,
we don't report EOF until the decompressed data has also been read completely
|
protected void |
readBuffer() |
void |
seek(InputPosition p) |
static ChecksummedDataInput |
upgradeInput(ChecksummedDataInput input,
ICompressor compressor) |
bytesPastLimit, checkCrc, checkLimit, getChannel, getPath, getPosition, limit, open, read, readFully, reBuffer, resetCrc, resetLimit, tryUncacheReadread, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readInt, readLine, readLong, readPrimitiveSlowly, readShort, readUnsignedByte, readUnsignedShort, readUnsignedVInt, readUTF, readVInt, skipBytesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitskipBytesFullypublic CompressedChecksummedDataInput(ChannelProxy channel, ICompressor compressor, long filePosition)
public boolean isEOF()
isEOF in class ChecksummedDataInputpublic long getSourcePosition()
ChecksummedDataInputgetSourcePosition in class ChecksummedDataInputpublic InputPosition getSeekPosition()
ChecksummedDataInputgetSeekPosition in class ChecksummedDataInputpublic void seek(InputPosition p)
seek in class ChecksummedDataInputprotected void readBuffer()
readBuffer in class ChecksummedDataInputpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class ChecksummedDataInputpublic static ChecksummedDataInput upgradeInput(ChecksummedDataInput input, ICompressor compressor)
Copyright © 2018 The Apache Software Foundation