The default {@link #IntEncoder() constructor} is provided for convenienceonly. One must call {@link #reInit(OutputStream)} before calling{@link #encode(int)} or {@link #close()}.
For convenience, each encoder implements {@link #createMatchingDecoder()} foreasy access to the matching decoder.
NOTE: some implementations may buffer the encoded values in memory (such as {@link IntEncoderFilter} implementations) and encoding will happenonly upon calling {@link #close()}. Therefore it is important to always call {@link #close()} on the encoder at hand.
NOTE: encoders are usually not thread safe, unless specifically documented otherwise by an implementation. @lucene.experimental
|
|
|
|