|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.creole.annic.apache.lucene.store.OutputStream
gate.creole.annic.apache.lucene.store.RAMOutputStream
public class RAMOutputStream
A memory-resident OutputStream implementation.
| Field Summary | |
|---|---|
private RAMFile |
file
|
private int |
pointer
|
| Fields inherited from class gate.creole.annic.apache.lucene.store.OutputStream |
|---|
BUFFER_SIZE |
| Constructor Summary | |
|---|---|
RAMOutputStream()
Construct an empty output buffer. |
|
RAMOutputStream(RAMFile f)
|
|
| 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 |
| Field Detail |
|---|
private RAMFile file
private int pointer
| Constructor Detail |
|---|
public RAMOutputStream()
RAMOutputStream(RAMFile f)
| Method Detail |
|---|
public void writeTo(OutputStream out)
throws IOException
IOExceptionpublic void reset()
public void flushBuffer(byte[] src,
int len)
OutputStream
flushBuffer in class OutputStreamsrc - the bytes to writelen - the number of bytes to write
public void close()
throws IOException
OutputStream
close in class OutputStreamIOException
public void seek(long pos)
throws IOException
OutputStream
seek in class OutputStreamIOExceptionOutputStream.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 | |||||||||