|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.beanio.parser.StreamDefinition org.beanio.parser.xml.XmlStreamDefinition
public class XmlStreamDefinition
Stream definition used to parse and format XML formatted streams.
Field Summary |
---|
Fields inherited from class org.beanio.parser.StreamDefinition |
---|
READ_ONLY_MODE, READ_WRITE_MODE, WRITE_ONLY_MODE |
Constructor Summary | |
---|---|
XmlStreamDefinition()
Constructs a new XmlStreamDefinition. |
Method Summary | |
---|---|
BeanWriter |
createBeanWriter(Writer out)
Creates a new BeanWriter for writing to the given output stream. |
protected RecordReader |
createDefaultReader(Reader in)
Creates a default RecordReader to read from the given input stream. |
protected RecordWriter |
createDefaultWriter(Writer out)
Creates a default RecordWriter for writing to the given output stream. |
protected Record |
createRecord()
Constructs a new Record for this stream to operate on. |
protected GroupDefinition |
newGroupDefinition()
This method is called to instantiate a new group definition so that subclasses may override the implementation. |
protected GroupNode |
newGroupNode(GroupDefinition definition)
Constructs a new group node for parsing an input stream. |
void |
setReaderFactory(RecordReaderFactory readerFactory)
Sets the record reader factory to use to create new RecordReader's. |
Methods inherited from class org.beanio.parser.StreamDefinition |
---|
createBeanReader, createRecord, createRecordReader, createRecordWriter, getFieldErrorMessage, getFieldLabel, getFormat, getLabel, getMode, getName, getRecordErrorMessage, getRecordLabel, getRootGroupDefinition, newRecordNode, setDefaultResourceBundle, setMaxOccurs, setMinOccurs, setMode, setName, setResourceBundle, setWriterFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlStreamDefinition()
Method Detail |
---|
protected GroupDefinition newGroupDefinition()
StreamDefinition
newGroupDefinition
in class StreamDefinition
protected GroupNode newGroupNode(GroupDefinition definition)
StreamDefinition
newGroupNode
in class StreamDefinition
definition
- the group definition
protected Record createRecord()
StreamDefinition
createRecord
in class StreamDefinition
public void setReaderFactory(RecordReaderFactory readerFactory)
StreamDefinition
setReaderFactory
in class StreamDefinition
readerFactory
- the new record reader factoryprotected RecordReader createDefaultReader(Reader in)
StreamDefinition
StreamDefinition.createRecordReader(Reader)
if no record
reader factory was configured.
createDefaultReader
in class StreamDefinition
in
- the input stream to read from
protected RecordWriter createDefaultWriter(Writer out)
StreamDefinition
StreamDefinition.createRecordWriter(Writer)
if no record
writer factory was configured.
createDefaultWriter
in class StreamDefinition
out
- the output stream to write to
public BeanWriter createBeanWriter(Writer out)
createBeanWriter
in class StreamDefinition
out
- the output stream to write to
|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |