public class RAMOutputStream extends BufferedIndexOutput
IndexOutput implementation.| Constructor and Description |
|---|
RAMOutputStream()
Construct an empty output buffer.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
flush, getFilePointer, writeByte, writeByteswriteChars, writeInt, writeLong, writeString, writeVInt, writeVLongpublic void writeTo(IndexOutput out) throws IOException
IOExceptionpublic void reset()
public void flushBuffer(byte[] src,
int len)
BufferedIndexOutputflushBuffer in class BufferedIndexOutputsrc - the bytes to writelen - the number of bytes to writepublic void close()
throws IOException
BufferedIndexOutputclose in class BufferedIndexOutputIOExceptionpublic void seek(long pos)
throws IOException
BufferedIndexOutputseek in class BufferedIndexOutputIOExceptionBufferedIndexOutput.getFilePointer()public long length()
BufferedIndexOutputlength in class BufferedIndexOutputCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.