public class JpsConfigSerializer
extends java.lang.Object
| Constructor and Description | 
|---|
| JpsConfigSerializer()Contsturctor | 
| Modifier and Type | Method and Description | 
|---|---|
| org.w3c.dom.Element | marshall(java.lang.Object root)} Marshall a JpsConfig object to generate a DOM element | 
| void | marshall(java.lang.Object root, java.io.OutputStream os)Marshall a JpsConfig object to generate a DOM element and write out to supplied output stream | 
| void | marshall(java.lang.Object root, java.lang.String fname)Marshall a JpsConfig object to generate a DOM element and write the DOM element into a file | 
| JpsConfig | unmarshall(org.w3c.dom.Element root)Unmarshall the JpsConfig document element to create a JpsConfig object | 
| JpsConfig | unmarshall(java.io.InputStream is)Unmarshall the input stream representing jps-config.xml, to create a JpsConfig object | 
| JpsConfig | unmarshall(java.lang.String fname)Unmarshall the jps-config.xml file to create a JpsConfig object | 
public JpsConfigSerializer()
                    throws JpsException
JpsException - if JAXBContext initialization failspublic JpsConfig unmarshall(org.w3c.dom.Element root) throws JpsException
root - JpsConfig elementJpsException - if unmrashalling failspublic JpsConfig unmarshall(java.lang.String fname) throws JpsException
fname - jps-config.xml file name (absolute path)JpsException - if unmarshalling failspublic JpsConfig unmarshall(java.io.InputStream is) throws JpsException
is - - is the input streamJpsException - if unmarshalling failspublic org.w3c.dom.Element marshall(java.lang.Object root)
                             throws JpsException
root - JpsConfig objectJpsException - if marshalling failspublic void marshall(java.lang.Object root,
                     java.io.OutputStream os)
              throws JpsException
root - JspConfig object to be marshalledos - OutputStream to which the marhalled DOM element will be writtenJpsException - if marshalling failspublic void marshall(java.lang.Object root,
                     java.lang.String fname)
              throws JpsException
root - JspConfig object to be marshalledfname - Filename where the marhalled DOM element will be written (requires absolute path)JpsException - if marshalling fails