|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.beanio.internal.parser.StreamFormatSupport
public abstract class StreamFormatSupport
Base class for StreamFormat
implementations.
Constructor Summary | |
---|---|
StreamFormatSupport()
Constructs a new StreamFormatSupport. |
Method Summary | |
---|---|
RecordMarshaller |
createRecordMarshaller()
Creates a new record marshaller. |
RecordReader |
createRecordReader(Reader in)
Creates a new RecordReader to read from the given input stream. |
RecordUnmarshaller |
createRecordUnmarshaller()
Creates a new record unmarshaller. |
RecordWriter |
createRecordWriter(Writer out)
Creates a new RecordWriter for writing to the given output stream. |
String |
getName()
Returns the name of the stream. |
protected RecordParserFactory |
getRecordParserFactory()
Returns the RecordParserFactory used by this stream. |
void |
setName(String name)
Sets the name of this stream. |
void |
setRecordParserFactory(RecordParserFactory recordParserFactory)
Sets the RecordParserFactory for creating record parsers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.beanio.internal.parser.StreamFormat |
---|
createMarshallingContext, createUnmarshallingContext |
Constructor Detail |
---|
public StreamFormatSupport()
Method Detail |
---|
public void setName(String name)
name
- the stream namepublic String getName()
StreamFormat
getName
in interface StreamFormat
public RecordReader createRecordReader(Reader in)
createRecordReader
in interface StreamFormat
in
- the input stream to read from
public RecordWriter createRecordWriter(Writer out)
createRecordWriter
in interface StreamFormat
out
- the output stream to write to
public RecordMarshaller createRecordMarshaller()
StreamFormat
createRecordMarshaller
in interface StreamFormat
RecordMarshaller
public RecordUnmarshaller createRecordUnmarshaller()
StreamFormat
createRecordUnmarshaller
in interface StreamFormat
RecordUnmarshaller
public void setRecordParserFactory(RecordParserFactory recordParserFactory)
RecordParserFactory
for creating record parsers.
recordParserFactory
- the RecordParserFactory
protected RecordParserFactory getRecordParserFactory()
RecordParserFactory
used by this stream.
RecordParserFactory
|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |