|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gate.creole.annic.apache.lucene.store.OutputStream gate.creole.annic.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 gate.creole.annic.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 IOException
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 IOException
OutputStream
close
in class OutputStream
IOException
public void seek(long pos) throws IOException
OutputStream
seek
in class OutputStream
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 |