Package org.codice.ddf.parser.xml
Class XmlParser
java.lang.Object
org.codice.ddf.parser.xml.XmlParser
- All Implemented Interfaces:
org.codice.ddf.parser.Parser
XML Parser implementation, uses JAXB internally to marshal and unmarshal object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.codice.ddf.parser.ParserConfiguratorconfigureParser(List<String> contextPath, ClassLoader loader) voidmarshal(org.codice.ddf.parser.ParserConfigurator configurator, Object obj, OutputStream os) void<T> Tunmarshal(org.codice.ddf.parser.ParserConfigurator configurator, Class<? extends T> cls, InputStream stream) <T> Tunmarshal(org.codice.ddf.parser.ParserConfigurator configurator, Class<? extends T> cls, Source source) <T> T
-
Constructor Details
-
XmlParser
public XmlParser()
-
-
Method Details
-
configureParser
public org.codice.ddf.parser.ParserConfigurator configureParser(List<String> contextPath, ClassLoader loader) - Specified by:
configureParserin interfaceorg.codice.ddf.parser.Parser
-
marshal
public void marshal(org.codice.ddf.parser.ParserConfigurator configurator, Object obj, OutputStream os) throws org.codice.ddf.parser.ParserException - Specified by:
marshalin interfaceorg.codice.ddf.parser.Parser- Throws:
org.codice.ddf.parser.ParserException
-
marshal
public void marshal(org.codice.ddf.parser.ParserConfigurator configurator, Object obj, Node node) throws org.codice.ddf.parser.ParserException - Specified by:
marshalin interfaceorg.codice.ddf.parser.Parser- Throws:
org.codice.ddf.parser.ParserException
-
unmarshal
public <T> T unmarshal(org.codice.ddf.parser.ParserConfigurator configurator, Class<? extends T> cls, InputStream stream) throws org.codice.ddf.parser.ParserException - Specified by:
unmarshalin interfaceorg.codice.ddf.parser.Parser- Throws:
org.codice.ddf.parser.ParserException
-
unmarshal
public <T> T unmarshal(org.codice.ddf.parser.ParserConfigurator configurator, Class<? extends T> cls, Node node) throws org.codice.ddf.parser.ParserException - Specified by:
unmarshalin interfaceorg.codice.ddf.parser.Parser- Throws:
org.codice.ddf.parser.ParserException
-
unmarshal
public <T> T unmarshal(org.codice.ddf.parser.ParserConfigurator configurator, Class<? extends T> cls, Source source) throws org.codice.ddf.parser.ParserException - Specified by:
unmarshalin interfaceorg.codice.ddf.parser.Parser- Throws:
org.codice.ddf.parser.ParserException
-