Package google.registry.xjc
Class XjcXmlTransformer
java.lang.Object
google.registry.xjc.XjcXmlTransformer
Static methods for marshalling to and from the generated classes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic XmlTransformer
get()
static void
marshal
(Object root, OutputStream out, Charset charset, ValidationMode validationMode) static void
marshalLenient
(Object root, OutputStream out, Charset charset) static void
marshalLenient
(Object root, Writer writer) static void
marshalStrict
(Object root, OutputStream out, Charset charset) static <T> T
unmarshal
(Class<T> clazz, InputStream stream)
-
Constructor Details
-
XjcXmlTransformer
public XjcXmlTransformer()
-
-
Method Details
-
get
-
unmarshal
- Throws:
XmlException
-
marshalLenient
- Throws:
XmlException
-
marshalLenient
public static void marshalLenient(Object root, OutputStream out, Charset charset) throws XmlException - Throws:
XmlException
-
marshalStrict
public static void marshalStrict(Object root, OutputStream out, Charset charset) throws XmlException - Throws:
XmlException
-
marshal
public static void marshal(Object root, OutputStream out, Charset charset, ValidationMode validationMode) throws XmlException - Throws:
XmlException
-