|
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 org.beanio.internal.parser.format.xml.XmlStreamFormat
public class XmlStreamFormat
A StreamFormatSupport
implementation for the XML stream format.
This implementation requires a reference to the stream layout (i.e. the root Selector
in the parser tree). The layout is not modified in any way allowing this class to be thread
safe.
Constructor Summary | |
---|---|
XmlStreamFormat()
Constructs a new XmlStreamFormat. |
Method Summary | |
---|---|
protected Document |
createBaseDocument(Selector layout)
Creates a DOM made up of any group nodes in the parser tree. |
MarshallingContext |
createMarshallingContext(boolean streaming)
Creates a new marshalling context. |
UnmarshallingContext |
createUnmarshallingContext()
Creates a new ummarshalling context. |
void |
setGroupDepth(int groupDepth)
|
void |
setLayout(Selector layout)
Sets the stream layout. |
void |
setRecordParserFactory(RecordParserFactory recordParserFactory)
Sets the RecordParserFactory for creating record parsers. |
Methods inherited from class org.beanio.internal.parser.StreamFormatSupport |
---|
createRecordMarshaller, createRecordReader, createRecordUnmarshaller, createRecordWriter, getName, getRecordParserFactory, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlStreamFormat()
Method Detail |
---|
public UnmarshallingContext createUnmarshallingContext()
StreamFormat
UnmarshallingContext
public MarshallingContext createMarshallingContext(boolean streaming)
StreamFormat
streaming
- true if marshalling to a stream
MarshallingContext
public void setRecordParserFactory(RecordParserFactory recordParserFactory)
StreamFormatSupport
RecordParserFactory
for creating record parsers.
setRecordParserFactory
in class StreamFormatSupport
recordParserFactory
- the RecordParserFactory
public void setLayout(Selector layout)
layout
- the root Selector
node in the parser treeprotected Document createBaseDocument(Selector layout)
Document
made up of group nodespublic void setGroupDepth(int groupDepth)
groupDepth
-
|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |