Package org.beanio.internal.parser
Interface StreamFormat
-
- All Known Implementing Classes:
CsvStreamFormat,DelimitedStreamFormat,FixedLengthStreamFormat,JsonStreamFormat,StreamFormatSupport,XmlStreamFormat
public interface StreamFormatAStreamFormatprovides format specific extensions for aStreamparser.Implementations of this interface must be thread-safe.
- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MarshallingContextcreateMarshallingContext(boolean streaming)Creates a new marshalling context.RecordMarshallercreateRecordMarshaller()Creates a new record marshaller.RecordReadercreateRecordReader(java.io.Reader in)Creates a new record reader.RecordUnmarshallercreateRecordUnmarshaller()Creates a new record unmarshaller.RecordWritercreateRecordWriter(java.io.Writer out)Creates a new record writer.UnmarshallingContextcreateUnmarshallingContext()Creates a new ummarshalling context.java.lang.StringgetName()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- theReaderto read records from- Returns:
- the new
RecordReader
-
createRecordWriter
RecordWriter createRecordWriter(java.io.Writer out)
Creates a new record writer.- Parameters:
out- theWriterto write records to- Returns:
- the new
RecordWriter
-
-