|
BeanIO 1.2.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 StreamDefinitionprotected GroupNode newGroupNode(GroupDefinition definition)
StreamDefinition
newGroupNode in class StreamDefinitiondefinition - the group definition
protected Record createRecord()
StreamDefinition
createRecord in class StreamDefinitionpublic void setReaderFactory(RecordReaderFactory readerFactory)
StreamDefinition
setReaderFactory in class StreamDefinitionreaderFactory - the new record reader factoryprotected RecordReader createDefaultReader(Reader in)
StreamDefinitionStreamDefinition.createRecordReader(Reader) if no record
reader factory was configured.
createDefaultReader in class StreamDefinitionin - the input stream to read from
protected RecordWriter createDefaultWriter(Writer out)
StreamDefinitionStreamDefinition.createRecordWriter(Writer) if no record
writer factory was configured.
createDefaultWriter in class StreamDefinitionout - the output stream to write to
public BeanWriter createBeanWriter(Writer out)
createBeanWriter in class StreamDefinitionout - 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 | ||||||||