BeanIO 2.0.4

org.beanio.stream.xml
Class XmlRecordMarshaller

java.lang.Object
  extended by org.beanio.stream.xml.XmlRecordMarshaller
All Implemented Interfaces:
RecordMarshaller

public class XmlRecordMarshaller
extends Object
implements RecordMarshaller

A RecordMarshaller implementation for XML formatted records.

Since:
2.0
Author:
Kevin Seim

Field Summary
static String IS_NAMESPACE_IGNORED
          The DOM user data key to indicate whether the namespace of a DOM element should be ignored when writing to the output stream.
 
Constructor Summary
XmlRecordMarshaller()
          Constructs a new XmlRecordMarshaller.
XmlRecordMarshaller(XmlParserConfiguration config)
          Constructs a new XmlRecordMarshaller.
 
Method Summary
protected  String marshal(Document document)
          Marshals a Document.
 String marshal(Object record)
          Marshals a single record object to a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IS_NAMESPACE_IGNORED

public static final String IS_NAMESPACE_IGNORED
The DOM user data key to indicate whether the namespace of a DOM element should be ignored when writing to the output stream. The value must be of type java.lang.Boolean.

See Also:
Constant Field Values
Constructor Detail

XmlRecordMarshaller

public XmlRecordMarshaller()
Constructs a new XmlRecordMarshaller.


XmlRecordMarshaller

public XmlRecordMarshaller(XmlParserConfiguration config)
Constructs a new XmlRecordMarshaller.

Parameters:
config - the XmlParserConfiguration
Method Detail

marshal

public String marshal(Object record)
               throws RecordIOException
Description copied from interface: RecordMarshaller
Marshals a single record object to a String.

Specified by:
marshal in interface RecordMarshaller
Parameters:
record - the record object to marshal
Returns:
the marshalled record text
Throws:
RecordIOException

marshal

protected String marshal(Document document)
                  throws XMLStreamException
Marshals a Document.

Parameters:
document - the Document to marshal
Returns:
the marshalled record text
Throws:
XMLStreamException

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim