protected static class

SimpleFSDirectory.SimpleFSIndexInput

extends BufferedIndexInput
java.lang.Object
   ↳ org.apache.lucene.store.IndexInput
     ↳ org.apache.lucene.store.BufferedIndexInput
       ↳ org.apache.lucene.store.SimpleFSDirectory.SimpleFSIndexInput
Known Direct Subclasses

Summary

Nested Classes
class SimpleFSDirectory.SimpleFSIndexInput.Descriptor  
[Expand]
Inherited Constants
From class org.apache.lucene.store.BufferedIndexInput
Fields
protected final int chunkSize
protected final SimpleFSDirectory.SimpleFSIndexInput.Descriptor file
[Expand]
Inherited Fields
From class org.apache.lucene.store.BufferedIndexInput
Public Constructors
SimpleFSDirectory.SimpleFSIndexInput(File path, int bufferSize, int chunkSize)
Public Methods
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 Methods
void readInternal(byte[] b, int offset, int len)
IndexInput methods
void seekInternal(long position)
Expert: implements seek.
[Expand]
Inherited Methods
From class org.apache.lucene.store.BufferedIndexInput
From class org.apache.lucene.store.IndexInput
From class java.lang.Object
From interface java.io.Closeable

Fields

protected final int chunkSize

Public Constructors

public SimpleFSDirectory.SimpleFSIndexInput (File path, int bufferSize, int chunkSize)

Throws
IOException

Public Methods

public Object clone ()

Returns a clone of this stream.

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.

public void close ()

Closes the stream to further operations.

Throws
IOException

public long length ()

The number of bytes in the file.

Protected Methods

protected void readInternal (byte[] b, int offset, int len)

IndexInput methods

Parameters
b the array to read bytes into
offset the offset in the array to start storing bytes
len the number of bytes to read
Throws
IOException

protected void seekInternal (long position)

Expert: implements seek. Sets current position in this file, where the next readInternal(byte[], int, int) will occur.