Package org.opencastproject.util.jaxb
Class JaxbParser
java.lang.Object
org.opencastproject.util.jaxb.JaxbParser
- Direct Known Subclasses:
GroupParser,IncidentParser
Base class for JAXB parser classes.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JaxbParser
Create a new parser.- Parameters:
contextPath- seeJAXBContext.newInstance(String, ClassLoader)
-
-
Method Details
-
getCtx
public javax.xml.bind.JAXBContext getCtx() -
unmarshal
Unmarshal an instance of classdtoClassfromsourceand close it.- Throws:
IOException
-
marshal
Marshal an object into a string.- Throws:
IOException
-