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) |
write
public 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 OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
Flushes the underlying index output.
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
Closes the underlying index output.
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.