|
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.stream.xml.XmlParserConfiguration org.beanio.stream.xml.XmlRecordParserFactory
public class XmlRecordParserFactory
Default RecordParserFactory
for the XML stream format.
Constructor Summary | |
---|---|
XmlRecordParserFactory()
Constructs a new XmlRecordParserFactory. |
Method Summary | |
---|---|
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. |
void |
setConfiguration(XmlStreamConfiguration source)
This method is invoked by a XML stream definition when a RecordReader implementation is registered. |
Methods inherited from class org.beanio.stream.xml.XmlParserConfiguration |
---|
addNamespace, clone, getEncoding, getIndentation, getLineSeparator, getNamespaceMap, getVersion, isIndentationEnabled, isSuppressHeader, setEncoding, setIndentation, setLineSeparator, setNamespaces, setSuppressHeader, setVersion |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlRecordParserFactory()
Method Detail |
---|
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 from
RecordReader
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 to
RecordWriter
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 createdpublic void setConfiguration(XmlStreamConfiguration source)
XmlStreamConfigurationAware
setConfiguration
in interface XmlStreamConfigurationAware
source
- the XML stream configuration
|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |