public class ModuleFileUnmarshaller extends Object
| Constructor and Description |
|---|
ModuleFileUnmarshaller() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
unmarshal(Class<T> clz,
File file)
Unmarshal a file to it's corresponding object type.
|
<T> T |
unmarshal(Class<T> clz,
File file,
boolean logXsd)
Unmarshal a file to it's corresponding object type.
|
public <T> T unmarshal(Class<T> clz, File file) throws JAXBException, IOException, XMLStreamException, SAXException
clz - class of the object representationfile - file to unmarshalJAXBException - if unable to unmarshal the fileXMLStreamExceptionSAXExceptionFileNotFoundExceptionIOExceptionpublic <T> T unmarshal(Class<T> clz, File file, boolean logXsd) throws JAXBException, IOException, XMLStreamException, SAXException
clz - class of the object representationfile - file to unmarshallogXsd - log XSD informationJAXBException - if unable to unmarshal the fileXMLStreamExceptionSAXExceptionFileNotFoundExceptionIOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.