/** * Marshall an XMLObject to a Writer. * * @param xmlObject the XMLObject to marshall * @param writer the Writer to which to marshall * @throws MarshallingException if there is a problem marshalling the object */ public static void marshallToWriter(XMLObject xmlObject, Writer writer) throws MarshallingException { Element element = marshall(xmlObject); XMLHelper.writeNode(element, writer); }
/** * Marshall an XMLObject to an OutputStream. * * @param xmlObject the XMLObject to marshall * @param outputStream the OutputStream to which to marshall * @throws MarshallingException if there is a problem marshalling the object */ public static void marshallToOutputStream(XMLObject xmlObject, OutputStream outputStream) throws MarshallingException { Element element = marshall(xmlObject); XMLHelper.writeNode(element, outputStream); }
/** * Marshall an XMLObject to an OutputStream. * * @param xmlObject the XMLObject to marshall * @param outputStream the OutputStream to which to marshall * @throws MarshallingException if there is a problem marshalling the object */ public static void marshallToOutputStream(XMLObject xmlObject, OutputStream outputStream) throws MarshallingException { Element element = marshall(xmlObject); XMLHelper.writeNode(element, outputStream); }
/** * Marshall an XMLObject to a Writer. * * @param xmlObject the XMLObject to marshall * @param writer the Writer to which to marshall * @throws MarshallingException if there is a problem marshalling the object */ public static void marshallToWriter(XMLObject xmlObject, Writer writer) throws MarshallingException { Element element = marshall(xmlObject); XMLHelper.writeNode(element, writer); }