|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.store.IndexOutput
org.apache.lucene.store.BufferedIndexOutput
org.apache.lucene.store.RAMOutputStream
A memory-resident IndexOutput
implementation.
Constructor Summary | |
RAMOutputStream()
Construct an empty output buffer. |
Method Summary | |
void |
close()
Closes this stream to further operations. |
void |
flushBuffer(byte[] src,
int len)
Expert: implements buffer write. |
long |
length()
The number of bytes in the file. |
void |
reset()
Resets this to an empty buffer. |
void |
seek(long pos)
Sets current position in this file, where the next write will occur. |
void |
writeTo(IndexOutput out)
Copy the current contents of this buffer to the named output. |
Methods inherited from class org.apache.lucene.store.BufferedIndexOutput |
flush, getFilePointer, writeByte, writeBytes |
Methods inherited from class org.apache.lucene.store.IndexOutput |
writeChars, writeInt, writeLong, writeString, writeVInt, writeVLong |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RAMOutputStream()
Method Detail |
public void writeTo(IndexOutput out) throws IOException
IOException
public void reset()
public void flushBuffer(byte[] src, int len) throws IOException
BufferedIndexOutput
flushBuffer
in class BufferedIndexOutput
src
- the bytes to writelen
- the number of bytes to write
IOException
public void close() throws IOException
BufferedIndexOutput
close
in class BufferedIndexOutput
IOException
public void seek(long pos) throws IOException
BufferedIndexOutput
seek
in class BufferedIndexOutput
IOException
BufferedIndexOutput.getFilePointer()
public long length()
BufferedIndexOutput
length
in class BufferedIndexOutput
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |