protected static class FSDirectory.FSIndexInput extends BufferedIndexInput
| Modifier and Type | Class and Description |
|---|---|
protected static class |
FSDirectory.FSIndexInput.Descriptor |
| Modifier and Type | Field and Description |
|---|---|
protected FSDirectory.FSIndexInput.Descriptor |
file |
buffer, BUFFER_SIZE| Constructor and Description |
|---|
FSDirectory.FSIndexInput(File path) |
FSDirectory.FSIndexInput(File path,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Returns a clone of this stream.
|
void |
close()
Closes the stream to futher operations.
|
long |
length()
The number of bytes in the file.
|
protected void |
readInternal(byte[] b,
int offset,
int len)
IndexInput methods
|
protected void |
seekInternal(long position)
Expert: implements seek.
|
getBufferSize, getFilePointer, newBuffer, readByte, readBytes, readBytes, seek, setBufferSizereadChars, readInt, readLong, readString, readVInt, readVLong, setModifiedUTF8StringsMode, skipCharsprotected final FSDirectory.FSIndexInput.Descriptor file
public FSDirectory.FSIndexInput(File path) throws IOException
IOExceptionpublic FSDirectory.FSIndexInput(File path, int bufferSize) throws IOException
IOExceptionprotected void readInternal(byte[] b,
int offset,
int len)
throws IOException
readInternal in class BufferedIndexInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to readIOExceptionpublic void close()
throws IOException
IndexInputclose in class IndexInputIOExceptionprotected void seekInternal(long position)
BufferedIndexInputBufferedIndexInput.readInternal(byte[],int,int) will occur.seekInternal in class BufferedIndexInputBufferedIndexInput.readInternal(byte[],int,int)public long length()
IndexInputlength in class IndexInputpublic Object clone()
IndexInputClones 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-2013 Apache Software Foundation. All Rights Reserved.