public class JAXBUtil extends Object
| Constructor and Description |
|---|
JAXBUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
parseFileOrResource(String path,
Class<?> objectFactoryClass)
Unmarshals the path given to the given Type T using the object factory class provided as an argument.
If a file with the given path name exists then it is parsed, otherwise
a resource with "/" + path is tried. |
public static <T> T parseFileOrResource(String path, Class<?> objectFactoryClass)
path name exists then it is parsed, otherwise
a resource with "/" + path is tried. If that also does not exist, then en exception is thrownpath - file or resource to be parsed as XML.objectFactoryClass - the class of ObjectFactory generated for the root schema.Copyright © 2019 toop.eu. All rights reserved.