|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.store.DataInput
org.apache.lucene.store.IndexInput
org.apache.lucene.store.RAMInputStream
public class RAMInputStream
A memory-resident IndexInput implementation.
| Constructor Summary | |
|---|---|
RAMInputStream(String name,
RAMFile f)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the stream to further operations. |
long |
getFilePointer()
Returns the current position in this file, where the next read will occur. |
long |
length()
The number of bytes in the file. |
byte |
readByte()
Reads and returns a single byte. |
void |
readBytes(byte[] b,
int offset,
int len)
Reads a specified number of bytes into an array at the specified offset. |
void |
seek(long pos)
Sets current position in this file, where the next read will occur. |
| Methods inherited from class org.apache.lucene.store.IndexInput |
|---|
clone, toString |
| Methods inherited from class org.apache.lucene.store.DataInput |
|---|
readBytes, readInt, readLong, readShort, readString, readStringSet, readStringStringMap, readVInt, readVLong |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RAMInputStream(String name,
RAMFile f)
throws IOException
IOException| Method Detail |
|---|
public void close()
IndexInput
close in interface Closeableclose in class IndexInputpublic long length()
IndexInput
length in class IndexInput
public byte readByte()
throws IOException
DataInput
readByte in class DataInputIOExceptionDataOutput.writeByte(byte)
public void readBytes(byte[] b,
int offset,
int len)
throws IOException
DataInput
readBytes in class DataInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to read
IOExceptionDataOutput.writeBytes(byte[],int)public long getFilePointer()
IndexInput
getFilePointer in class IndexInputIndexInput.seek(long)
public void seek(long pos)
throws IOException
IndexInput
seek in class IndexInputIOExceptionIndexInput.getFilePointer()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||