Package org.beanio.internal.parser
Interface StreamFormat
-
- All Known Implementing Classes:
CsvStreamFormat
,DelimitedStreamFormat
,FixedLengthStreamFormat
,JsonStreamFormat
,StreamFormatSupport
,XmlStreamFormat
public interface StreamFormat
AStreamFormat
provides format specific extensions for aStream
parser.Implementations of this interface must be thread-safe.
- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MarshallingContext
createMarshallingContext(boolean streaming)
Creates a new marshalling context.RecordMarshaller
createRecordMarshaller()
Creates a new record marshaller.RecordReader
createRecordReader(java.io.Reader in)
Creates a new record reader.RecordUnmarshaller
createRecordUnmarshaller()
Creates a new record unmarshaller.RecordWriter
createRecordWriter(java.io.Writer out)
Creates a new record writer.UnmarshallingContext
createUnmarshallingContext()
Creates a new ummarshalling context.java.lang.String
getName()
Returns the name of the stream.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the name of the stream.- Returns:
- the stream name
-
createUnmarshallingContext
UnmarshallingContext createUnmarshallingContext()
Creates a new ummarshalling context.- Returns:
- the new
UnmarshallingContext
-
createMarshallingContext
MarshallingContext createMarshallingContext(boolean streaming)
Creates a new marshalling context.- Parameters:
streaming
- true if marshalling to a stream- Returns:
- the new
MarshallingContext
-
createRecordMarshaller
RecordMarshaller createRecordMarshaller()
Creates a new record marshaller.- Returns:
- the new
RecordMarshaller
-
createRecordUnmarshaller
RecordUnmarshaller createRecordUnmarshaller()
Creates a new record unmarshaller.- Returns:
- the new
RecordUnmarshaller
-
createRecordReader
RecordReader createRecordReader(java.io.Reader in)
Creates a new record reader.- Parameters:
in
- theReader
to read records from- Returns:
- the new
RecordReader
-
createRecordWriter
RecordWriter createRecordWriter(java.io.Writer out)
Creates a new record writer.- Parameters:
out
- theWriter
to write records to- Returns:
- the new
RecordWriter
-
-