Skip navigation links
oracle.iam.certification.vo.util.jaxb
Class JAXBProcessor
java.lang.Object
oracle.iam.certification.vo.util.jaxb.JAXBProcessor
-
public class JAXBProcessor
- extends java.lang.Object
Default to oracle.iam.certification.domain package. Note there is a jaxb.index file in the "oracle.iam.certification.domain" package that must be updated with the classes to marshall/unmarshall.
Method Summary |
static byte[] |
getBytes(java.lang.Object o)
Return byte array of marshalled object o. |
static java.lang.Object |
getObject(java.lang.String xml)
Return object unmarshalled by xml String. |
static java.lang.String |
getString(java.lang.Object o)
Return string of marshalled object o. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CHARSET
public static final java.lang.String DEFAULT_CHARSET
-
- See Also:
- Constant Field Values
JAXBProcessor
public JAXBProcessor()
getBytes
public static byte[] getBytes(java.lang.Object o)
throws javax.xml.bind.JAXBException
- Return byte array of marshalled object o.
-
- Parameters:
o
- Object to marshall
- Returns:
- byte array of XML representation of object
- Throws:
javax.xml.bind.JAXBException
- If there was an error
getString
public static java.lang.String getString(java.lang.Object o)
throws javax.xml.bind.JAXBException
- Return string of marshalled object o.
-
- Parameters:
o
- Object to marshall
- Returns:
- String XML representation of object
- Throws:
javax.xml.bind.JAXBException
- If there was an error
getObject
public static java.lang.Object getObject(java.lang.String xml)
throws javax.xml.bind.JAXBException,
java.io.UnsupportedEncodingException
- Return object unmarshalled by xml String.
-
- Parameters:
xml
- xml String.
- Returns:
- object represented by xml string.
- Throws:
javax.xml.bind.JAXBException
- if there was an error
java.io.UnsupportedEncodingException
Skip navigation links
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.