Closeable, AutoCloseable, Cloneableprotected static class WindowsDirectory.WindowsIndexInput extends BufferedIndexInput
buffer, BUFFER_SIZE| Constructor | Description |
|---|---|
WindowsIndexInput(File file,
int bufferSize) |
| Modifier and Type | Method | Description |
|---|---|---|
Object |
clone() |
Returns a clone of this stream.
|
void |
close() |
Closes the stream to further operations.
|
long |
length() |
The number of bytes in the file.
|
protected void |
readInternal(byte[] b,
int offset,
int length) |
Expert: implements buffer refill.
|
protected void |
seekInternal(long pos) |
Expert: implements seek.
|
copyBytes, flushBuffer, getBufferSize, getFilePointer, newBuffer, readByte, readBytes, readBytes, readInt, readLong, readShort, readVInt, readVLong, seek, setBufferSizereadChars, readString, readStringStringMap, setModifiedUTF8StringsModeskipChars, toStringpublic WindowsIndexInput(File file, int bufferSize) throws IOException
IOExceptionprotected void readInternal(byte[] b,
int offset,
int length)
throws IOException
BufferedIndexInputreadInternal in class BufferedIndexInputb - the array to read bytes intooffset - the offset in the array to start storing byteslength - the number of bytes to readIOExceptionprotected void seekInternal(long pos)
throws IOException
BufferedIndexInputBufferedIndexInput.readInternal(byte[],int,int) will occur.seekInternal in class BufferedIndexInputIOExceptionBufferedIndexInput.readInternal(byte[],int,int)public void close()
throws IOException
IndexInputclose in interface AutoCloseableclose in interface Closeableclose in class IndexInputIOExceptionpublic long length()
IndexInputlength in class IndexInputpublic Object clone()
DataInputClones of a stream access the same data, and are positioned at the same point as the stream they were cloned from.
Expert: Subclasses must ensure that clones may be positioned at different points in the input from each other and from the stream they were cloned from.
clone in class BufferedIndexInputCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.