public class XmlBeanUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
createFullBeanXmlString(Object object)
Create the XML string describing the given bean, as created by
an
XMLEncoder, but including all properties, even
if they still have their default values. |
static void |
writeFullBeanXml(Object object,
OutputStream outputStream)
Write the XML describing the given bean to the given output stream,
as it is done by an
XMLEncoder, but including all
properties, even if they still have their default values. |
public static void writeFullBeanXml(Object object, OutputStream outputStream)
XMLEncoder, but including all
properties, even if they still have their default values. The
caller is responsible for closing the given stream.object - The bean objectoutputStream - The stream to write toXmlException - If there is an error while encoding the objectpublic static String createFullBeanXmlString(Object object)
XMLEncoder, but including all properties, even
if they still have their default values.object - The bean objectXmlException - If there is an error while encoding the objectCopyright © 2020. All rights reserved.