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, writeBytes
writeChars, writeInt, writeLong, writeString, writeVInt, writeVLong
public void writeTo(IndexOutput out) throws IOException
IOException
public void reset()
public void flushBuffer(byte[] src, int len)
BufferedIndexOutput
flushBuffer
in class BufferedIndexOutput
src
- the bytes to writelen
- the number of bytes to writepublic 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
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.