Class XmlParser

java.lang.Object
org.codice.ddf.parser.xml.XmlParser
All Implemented Interfaces:
org.codice.ddf.parser.Parser

public class XmlParser extends Object implements org.codice.ddf.parser.Parser
XML Parser implementation, uses JAXB internally to marshal and unmarshal object.
  • Constructor Details

    • XmlParser

      public XmlParser()
  • Method Details

    • configureParser

      public org.codice.ddf.parser.ParserConfigurator configureParser(List<String> contextPath, ClassLoader loader)
      Specified by:
      configureParser in interface org.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:
      marshal in interface org.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:
      marshal in interface org.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:
      unmarshal in interface org.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:
      unmarshal in interface org.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:
      unmarshal in interface org.codice.ddf.parser.Parser
      Throws:
      org.codice.ddf.parser.ParserException