public abstract class JaxbParser extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
JaxbParser(String contextPath)
Create a new parser.
|
| Modifier and Type | Method and Description |
|---|---|
JAXBContext |
getCtx() |
String |
marshal(Object o)
Marshal an object into a string.
|
<A> A |
unmarshal(Class<A> dtoClass,
InputStream source)
Unmarshal an instance of class
dtoClass from source and close it. |
protected JaxbParser(String contextPath)
contextPath - see JAXBContext.newInstance(String, ClassLoader)public JAXBContext getCtx()
public <A> A unmarshal(Class<A> dtoClass, InputStream source) throws IOException
dtoClass from source and close it.IOExceptionpublic String marshal(Object o) throws IOException
IOExceptionCopyright © 2009–2021 Opencast Project. All rights reserved.