public class XmlRecordMarshaller extends Object implements RecordMarshaller
RecordMarshaller
implementation for XML formatted records.Constructor and Description |
---|
XmlRecordMarshaller()
Constructs a new XmlRecordMarshaller.
|
XmlRecordMarshaller(XmlParserConfiguration config)
Constructs a new XmlRecordMarshaller.
|
Modifier and Type | Method and Description |
---|---|
protected String |
marshal(Document document)
Marshals a
Document . |
String |
marshal(Object record)
Marshals a single record object to a String.
|
public XmlRecordMarshaller()
public XmlRecordMarshaller(XmlParserConfiguration config)
config
- the XmlParserConfiguration
public String marshal(Object record) throws RecordIOException
RecordMarshaller
marshal
in interface RecordMarshaller
record
- the record object to marshalRecordIOException
protected String marshal(Document document) throws XMLStreamException
Document
.document
- the Document
to marshalXMLStreamException