@PublicEvolving public class SimpleStringDecoder extends Object implements DecoderBasedReader.Decoder<String>
DecoderBasedReader.Decoder that reads data encoded by the SimpleStringEncoder only for compaction. The original
input type is missing, but it's enough to read string contents for writing the compacted file.DecoderBasedReader.Decoder.Factory<T>| Constructor and Description |
|---|
SimpleStringDecoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the open resources.
|
String |
decodeNext() |
void |
open(InputStream input)
Prepares to start decoding the input stream.
|
public void open(InputStream input) throws IOException
DecoderBasedReader.Decoderopen in interface DecoderBasedReader.Decoder<String>IOExceptionpublic String decodeNext() throws IOException
decodeNext in interface DecoderBasedReader.Decoder<String>IOExceptionpublic void close()
throws IOException
DecoderBasedReader.Decoderclose in interface DecoderBasedReader.Decoder<String>IOExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.