public class IndexOutputStream extends OutputStream
| Constructor and Description |
|---|
IndexOutputStream(org.apache.lucene.store.IndexOutput output)
Creates a new index output stream and wraps the given
output. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
writepublic IndexOutputStream(org.apache.lucene.store.IndexOutput output)
throws IOException
output. Bytes will always be written at the end of the
output.output - the lucene index output.IOException - if an error occurs while seeking to the end of the
index output.public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
Flushes the underlying index output.
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
Closes the underlying index output.
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.