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
|
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 any i/o error occursCopyright © 2015 JBoss, a division of Red Hat, Inc.. All Rights Reserved.