| java.lang.Object org.apache.lucene.store.IndexOutput org.apache.lucene.store.BufferedIndexOutput
BufferedIndexOutput | abstract public class BufferedIndexOutput extends IndexOutput (Code) | | Base implementation class for buffered
IndexOutput .
|
Method Summary | |
public void | close() Closes this stream to further operations. | public void | flush() Forces any buffered output to be written. | abstract protected void | flushBuffer(byte[] b, int offset, int len) Expert: implements buffer write. | public long | getFilePointer() Returns the current position in this file, where the next write will
occur. | abstract public long | length() The number of bytes in the file. | public void | seek(long pos) Sets current position in this file, where the next write will occur. | public void | writeByte(byte b) Writes a single byte. | public void | writeBytes(byte[] b, int offset, int length) Writes an array of bytes. |
BUFFER_SIZE | final static int BUFFER_SIZE(Code) | | |
close | public void close() throws IOException(Code) | | Closes this stream to further operations.
|
flush | public void flush() throws IOException(Code) | | Forces any buffered output to be written.
|
flushBuffer | abstract protected void flushBuffer(byte[] b, int offset, int len) throws IOException(Code) | | Expert: implements buffer write. Writes bytes at the current position in
the output.
Parameters: b - the bytes to write Parameters: offset - the offset in the byte array Parameters: len - the number of bytes to write |
length | abstract public long length() throws IOException(Code) | | The number of bytes in the file.
|
|
|