|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.store.OutputStream
org.apache.lucene.store.RAMOutputStream
public class RAMOutputStream
A memory-resident OutputStream
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(OutputStream out)
Copy the current contents of this buffer to the named output. |
Methods inherited from class org.apache.lucene.store.OutputStream |
---|
flush, getFilePointer, writeByte, writeBytes, 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(OutputStream out) throws java.io.IOException
java.io.IOException
public void reset()
public void flushBuffer(byte[] src, int len)
OutputStream
flushBuffer
in class OutputStream
src
- the bytes to writelen
- the number of bytes to writepublic void close() throws java.io.IOException
OutputStream
close
in class OutputStream
java.io.IOException
public void seek(long pos) throws java.io.IOException
OutputStream
seek
in class OutputStream
java.io.IOException
OutputStream.getFilePointer()
public long length()
OutputStream
length
in class OutputStream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |