public class ChecksummedRandomAccessReader extends RandomAccessReader
| Modifier and Type | Class and Description |
|---|---|
static class |
ChecksummedRandomAccessReader.CorruptFileException |
RandomAccessReader.BufferedRandomAccessFileMarkbuffer, BUFFER_SIZE, bufferOffset, channel, DEFAULT_BUFFER_SIZE, markedPointer, owner| Modifier | Constructor and Description |
|---|---|
protected |
ChecksummedRandomAccessReader(java.io.File file,
ChannelProxy channel,
DataIntegrityMetadata.ChecksumValidator validator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static ChecksummedRandomAccessReader |
open(java.io.File file,
java.io.File crcFile) |
protected void |
reBuffer()
Read data from file starting from current currentOffset to populate buffer.
|
void |
seek(long newPosition) |
allocateBuffer, bytesPastMark, bytesPastMark, bytesRemaining, current, deallocate, getChannel, getFilePointer, getPath, getPosition, getPositionLimit, getTotalBufferSize, isEOF, length, mark, open, open, open, open, read, read, read, readBytes, reset, reset, toStringreadBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytesprotected ChecksummedRandomAccessReader(java.io.File file,
ChannelProxy channel,
DataIntegrityMetadata.ChecksumValidator validator)
public static ChecksummedRandomAccessReader open(java.io.File file, java.io.File crcFile) throws java.io.IOException
java.io.IOExceptionprotected void reBuffer()
RandomAccessReaderreBuffer in class RandomAccessReaderpublic void seek(long newPosition)
seek in interface FileDataInputseek in class RandomAccessReaderpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class RandomAccessReaderCopyright © 2018 The Apache Software Foundation