|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.camel.registry.xml.loader.XmlLoader
public class XmlLoader
Loads an XML file using JAXB.
| Constructor Summary | |
|---|---|
XmlLoader()
|
|
| Method Summary | ||
|---|---|---|
static
|
loadSchemaAndFile(java.lang.String xsdPath,
java.lang.Class<T> rootClass,
java.io.InputStream xmlInputStream)
Verifies an XML file against an XSD and instantiates it using a given class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlLoader()
| Method Detail |
|---|
public static <T> T loadSchemaAndFile(java.lang.String xsdPath,
java.lang.Class<T> rootClass,
java.io.InputStream xmlInputStream)
throws java.lang.Exception
xsdPath - XSD file path.xmlRoot - Root element of the XMLxmlInputStream - XML to load.
java.lang.Exception - If creating the schema or parsing the XML fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||