org.apache.lucene.store
public abstract class IndexInput extends Object implements Cloneable
See Also: Directory
Method Summary | |
---|---|
Object | clone() Returns a clone of this stream.
|
abstract void | close() Closes the stream to futher operations. |
abstract long | getFilePointer() Returns the current position in this file, where the next read will
occur. |
abstract long | length() The number of bytes in the file. |
abstract byte | readByte() Reads and returns a single byte. |
abstract void | readBytes(byte[] b, int offset, int len) Reads a specified number of bytes into an array at the specified offset. |
void | readChars(char[] buffer, int start, int length) Reads UTF-8 encoded characters into an array. |
int | readInt() Reads four bytes and returns an int. |
long | readLong() Reads eight bytes and returns a long. |
String | readString() Reads a string. |
int | readVInt() Reads an int stored in variable-length format. |
long | readVLong() Reads a long stored in variable-length format. |
abstract void | seek(long pos) Sets current position in this file, where the next read will occur. |
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.
See Also: IndexInput
See Also: IndexOutput
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
See Also: (byte[],int)
Parameters: buffer the array to read characters into start the offset in the array to start storing characters length the number of characters to read
See Also: IndexOutput
See Also: IndexOutput
See Also: IndexOutput
See Also: writeString
See Also: IndexOutput
See Also: getFilePointer