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()
UnmarshallingContextMarshallingContext createMarshallingContext(boolean streaming)
streaming - true if marshalling to a streamMarshallingContextRecordMarshaller createRecordMarshaller()
RecordMarshallerRecordUnmarshaller createRecordUnmarshaller()
RecordUnmarshallerRecordReader createRecordReader(Reader in)
in - the Reader to read records fromRecordReaderRecordWriter createRecordWriter(Writer out)
out - the Writer to write records toRecordWriter