BeanIO 2.0.4

org.beanio.internal.parser
Interface StreamFormat

All Known Implementing Classes:
CsvStreamFormat, DelimitedStreamFormat, FixedLengthStreamFormat, JsonStreamFormat, StreamFormatSupport, XmlStreamFormat

public interface StreamFormat

A StreamFormat provides format specific extensions for a Stream parser.

Implementations of this interface must be thread-safe.

Since:
2.0
Author:
Kevin Seim

Method Summary
 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.
 

Method Detail

getName

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(Reader in)
Creates a new record reader.

Parameters:
in - the Reader to read records from
Returns:
the new RecordReader

createRecordWriter

RecordWriter createRecordWriter(Writer out)
Creates a new record writer.

Parameters:
out - the Writer to write records to
Returns:
the new RecordWriter

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim