public interface StreamFormat
Stream
parser.
Implementations of this interface must be thread-safe.
Modifier and Type | Method and Description |
---|---|
MarshallingContext |
createMarshallingContext(boolean streaming)
Creates a new marshalling context.
|
RecordMarshaller |
createRecordMarshaller()
Creates a new record marshaller.
|
RecordReader |
createRecordReader(Reader in)
Creates a new record reader.
|
RecordUnmarshaller |
createRecordUnmarshaller()
Creates a new record unmarshaller.
|
RecordWriter |
createRecordWriter(Writer out)
Creates a new record writer.
|
UnmarshallingContext |
createUnmarshallingContext()
Creates a new ummarshalling context.
|
String |
getName()
Returns the name of the stream.
|
String getName()
UnmarshallingContext createUnmarshallingContext()
UnmarshallingContext
MarshallingContext createMarshallingContext(boolean streaming)
streaming
- true if marshalling to a streamMarshallingContext
RecordMarshaller createRecordMarshaller()
RecordMarshaller
RecordUnmarshaller createRecordUnmarshaller()
RecordUnmarshaller
RecordReader createRecordReader(Reader in)
in
- the Reader
to read records fromRecordReader
RecordWriter createRecordWriter(Writer out)
out
- the Writer
to write records toRecordWriter