public class ChecksummedRandomAccessReader extends RandomAccessReader
Modifier and Type | Class and Description |
---|---|
static class |
ChecksummedRandomAccessReader.CorruptFileException |
RandomAccessReader.BufferedRandomAccessFileMark
buffer, 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, toString
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
protected 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.IOException
protected void reBuffer()
RandomAccessReader
reBuffer
in class RandomAccessReader
public void seek(long newPosition)
seek
in interface FileDataInput
seek
in class RandomAccessReader
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class RandomAccessReader
Copyright © 2020 The Apache Software Foundation