Interface DecoderBasedReader.Decoder<T>
- Type Parameters:
T- Thy type of the records the reader is reading.
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
SimpleStringDecoder
- Enclosing class:
- DecoderBasedReader<T>
A
DecoderBasedReader.Decoder to decode the file content into the actual records.
A DecoderBasedReader.Decoder is generally the reverse of a Encoder.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceFactory to createDecoderBasedReader.Decoder. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the open resources.voidopen(InputStream input) Prepares to start decoding the input stream.
-
Method Details
-
open
Prepares to start decoding the input stream.- Throws:
IOException
-
decodeNext
- Returns:
- The next record that decoded from the opened input stream, or null if no more available.
- Throws:
IOException
-
close
Closes the open resources. The decoder is responsible to close the input stream.- Throws:
IOException
-