public class DomDTOParser extends Object
| Constructor and Description |
|---|
DomDTOParser() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
parse(Class<T> type,
File doc)
parse the given XML file based on the type as the schema.
|
static <T> T |
parse(Class<T> type,
InputStream doc)
parse the given XML file based on the type as the schema.
|
public static <T> T parse(Class<T> type, File doc) throws Exception
type - the type acting as schemedoc - the fileExceptionpublic static <T> T parse(Class<T> type, InputStream doc) throws Exception
type - the type acting as schemedoc - the fileExceptionCopyright © 2021. All rights reserved.