public class DelimitedRecordParserFactory extends DelimitedParserConfiguration implements RecordParserFactory
RecordParserFactory
for the delimited stream format.Constructor and Description |
---|
DelimitedRecordParserFactory()
Constructs a new DelimitedRecordParserFactory.
|
Modifier and Type | Method and Description |
---|---|
RecordMarshaller |
createMarshaller()
Creates a parser for marshalling records.
|
RecordReader |
createReader(Reader in)
Creates a parser for reading records from an input stream.
|
RecordUnmarshaller |
createUnmarshaller()
Creates a parser for unmarshalling records.
|
RecordWriter |
createWriter(Writer out)
Creates a parser for writing records to an output stream.
|
void |
init()
Initializes the factory.
|
getComments, getDelimiter, getEscape, getLineContinuationCharacter, getRecordTerminator, isCommentEnabled, isEscapeEnabled, isLineContinationEnabled, setComments, setDelimiter, setEscape, setLineContinuationCharacter, setRecordTerminator
public DelimitedRecordParserFactory()
public void init() throws IllegalArgumentException
RecordParserFactory
init
in interface RecordParserFactory
IllegalArgumentException
- if the parser configuration is invalidpublic RecordReader createReader(Reader in) throws IllegalArgumentException
RecordParserFactory
createReader
in interface RecordParserFactory
in
- the input stream to read fromRecordReader
IllegalArgumentException
- if this factory is improperly configured
and a RecordReader
cannot be createdpublic RecordWriter createWriter(Writer out) throws IllegalArgumentException
RecordParserFactory
createWriter
in interface RecordParserFactory
out
- the output stream to write toRecordWriter
IllegalArgumentException
- if this factory is improperly configured
and a RecordWriter
cannot be createdpublic RecordMarshaller createMarshaller() throws IllegalArgumentException
RecordParserFactory
createMarshaller
in interface RecordParserFactory
RecordMarshaller
IllegalArgumentException
- if this factory is improperly configured and
a RecordMarshaller
cannot be createdpublic RecordUnmarshaller createUnmarshaller() throws IllegalArgumentException
RecordParserFactory
createUnmarshaller
in interface RecordParserFactory
RecordUnmarshaller
IllegalArgumentException
- if this factory is improperly configured and
a RecordUnmarshaller
cannot be created