protected static class NIOFSDirectory.NIOFSIndexInput extends SimpleFSDirectory.SimpleFSIndexInput
SimpleFSDirectory.SimpleFSIndexInput.Descriptor
chunkSize, file
buffer, BUFFER_SIZE
Constructor and Description |
---|
NIOFSDirectory.NIOFSIndexInput(java.io.File path,
int bufferSize,
int chunkSize) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the stream to further operations.
|
protected void |
newBuffer(byte[] newBuffer) |
protected void |
readInternal(byte[] b,
int offset,
int len)
IndexInput methods
|
clone, copyBytes, length, seekInternal
flushBuffer, getBufferSize, getFilePointer, readByte, readBytes, readBytes, readInt, readLong, readShort, readVInt, readVLong, seek, setBufferSize
skipChars, toString
readChars, readString, readStringStringMap, setModifiedUTF8StringsMode
public NIOFSDirectory.NIOFSIndexInput(java.io.File path, int bufferSize, int chunkSize) throws java.io.IOException
java.io.IOException
protected void newBuffer(byte[] newBuffer)
newBuffer
in class BufferedIndexInput
public void close() throws java.io.IOException
IndexInput
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class SimpleFSDirectory.SimpleFSIndexInput
java.io.IOException
protected void readInternal(byte[] b, int offset, int len) throws java.io.IOException
SimpleFSDirectory.SimpleFSIndexInput
readInternal
in class SimpleFSDirectory.SimpleFSIndexInput
b
- the array to read bytes intooffset
- the offset in the array to start storing byteslen
- the number of bytes to readjava.io.IOException