public class EncryptedChecksummedDataInput extends ChecksummedDataInput
DataInputPlus.DataInputStreamPlus
bufferOffset, channel
buffer
Modifier | Constructor and Description |
---|---|
protected |
EncryptedChecksummedDataInput(ChannelProxy channel,
javax.crypto.Cipher cipher,
ICompressor compressor,
long filePosition) |
Modifier and Type | Method and Description |
---|---|
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,
javax.crypto.Cipher cipher,
ICompressor compressor) |
bytesPastLimit, checkCrc, checkLimit, close, getChannel, getPath, getPosition, limit, open, read, readFully, reBuffer, resetCrc, resetLimit, tryUncacheRead
read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readPrimitiveSlowly, readShort, readUnsignedByte, readUnsignedShort, readUnsignedVInt, readUTF, readVInt, skipBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
skipBytesFully
protected EncryptedChecksummedDataInput(ChannelProxy channel, javax.crypto.Cipher cipher, ICompressor compressor, long filePosition)
public boolean isEOF()
isEOF
in class ChecksummedDataInput
public long getSourcePosition()
ChecksummedDataInput
getSourcePosition
in class ChecksummedDataInput
public InputPosition getSeekPosition()
ChecksummedDataInput
getSeekPosition
in class ChecksummedDataInput
public void seek(InputPosition p)
seek
in class ChecksummedDataInput
protected void readBuffer()
readBuffer
in class ChecksummedDataInput
public static ChecksummedDataInput upgradeInput(ChecksummedDataInput input, javax.crypto.Cipher cipher, ICompressor compressor)
Copyright © 2009-2021 The Apache Software Foundation