org.jboss.jandex
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
- IOException
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 occursCopyright © 2016 JBoss by Red Hat. All rights reserved.