public final class IndexWriter extends Object
Indexer.
The IndexWriter operates on standard output streams, and also provides suitable buffering.
Thread-Safety
IndexWriter is not thread-safe and can not be shared between concurrent threads.| Constructor and Description |
|---|
IndexWriter(OutputStream out)
Constructs an IndexWriter using the specified stream
|
| Modifier and Type | Method and Description |
|---|---|
int |
write(Index index)
Writes the specified index to the associated output stream.
|
int |
write(Index index,
byte version)
Deprecated.
|
int |
write(Index index,
int version)
Writes the specified index to the associated output stream.
|
public IndexWriter(OutputStream out)
out - a stream to write an index topublic int write(Index index) throws IOException
index - the index to write to the streamIOException - if the underlying stream fails@Deprecated public int write(Index index, byte version) throws IOException
index - the index to write to the streamversion - the index file versionIOException - if any i/o error occurspublic int write(Index index, int version) throws IOException
index - the index to write to the streamversion - the index file versionIOException - if any i/o error occursCopyright © 2022 JBoss by Red Hat. All rights reserved.