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(java.io.File path) |
FSDirectory.FSIndexInput(java.io.File path,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
java.lang.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, setBufferSize
readChars, readInt, readLong, readString, readVInt, readVLong, setModifiedUTF8StringsMode, skipChars
protected final FSDirectory.FSIndexInput.Descriptor file
public FSDirectory.FSIndexInput(java.io.File path) throws java.io.IOException
java.io.IOException
public FSDirectory.FSIndexInput(java.io.File path, int bufferSize) throws java.io.IOException
java.io.IOException
protected void readInternal(byte[] b, int offset, int len) throws java.io.IOException
readInternal
in class BufferedIndexInput
b
- the array to read bytes intooffset
- the offset in the array to start storing byteslen
- the number of bytes to readjava.io.IOException
public void close() throws java.io.IOException
IndexInput
close
in class IndexInput
java.io.IOException
protected void seekInternal(long position)
BufferedIndexInput
BufferedIndexInput.readInternal(byte[],int,int)
will occur.seekInternal
in class BufferedIndexInput
BufferedIndexInput.readInternal(byte[],int,int)
public long length()
IndexInput
length
in class IndexInput
public java.lang.Object clone()
IndexInput
Clones 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 BufferedIndexInput
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.