@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.Decoder
open
in interface DecoderBasedReader.Decoder<String>
IOException
public String decodeNext() throws IOException
decodeNext
in interface DecoderBasedReader.Decoder<String>
IOException
public void close() throws IOException
DecoderBasedReader.Decoder
close
in interface DecoderBasedReader.Decoder<String>
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.