public class VizJAXBHandler
extends java.lang.Object
Constructor and Description |
---|
VizJAXBHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
read(java.util.ArrayList<java.lang.Class> classList,
java.io.InputStream inputStream)
This operation reads an instance of a particular class type from the
input stream into a Java Object.
|
void |
write(java.lang.Object dataObject,
java.util.ArrayList<java.lang.Class> classList,
java.io.OutputStream outputStream)
This operation writes an instance of a particular class type from the
input stream into a Java Object.
|
public java.lang.Object read(java.util.ArrayList<java.lang.Class> classList, java.io.InputStream inputStream) throws java.lang.NullPointerException, javax.xml.bind.JAXBException, java.io.IOException
classList
- The class list from which JAXB annotations should be read.inputStream
- An InputStream from which the XML should be read by JAXB.java.lang.NullPointerException
javax.xml.bind.JAXBException
java.io.IOException
public void write(java.lang.Object dataObject, java.util.ArrayList<java.lang.Class> classList, java.io.OutputStream outputStream) throws java.lang.NullPointerException, javax.xml.bind.JAXBException, java.io.IOException
dataObject
- An Object that is an instance of the Class that is parsed to
create the XML InputStream.classList
- outputStream
- An OutputStream to which the XML should be written by JAXB.java.lang.NullPointerException
javax.xml.bind.JAXBException
java.io.IOException