Class XMLStreamWriterRecord

  • All Implemented Interfaces:
    AbstractMarshalRecord, MarshalRecord, XMLRecord

    public class XMLStreamWriterRecord
    extends MarshalRecord

    Use this type of MarshalRecord when the marshal target is an XMLStreamWriter

    XMLContext xmlContext = new XMLContext("session-name");
    XMLMarshaller xmlMarshaller = xmlContext.createMarshaller();
    XMLStreamWriterRecord writerRecord = new XMLStreamWriterRecord(xmlStreamWriter);
    xmlMarshaller.marshal(myObject, writerRecord);

    See Also:
    XMLMarshaller