Class XJmfParser


  • public class XJmfParser
    extends AbstractXmlParser<XJMF>
    Parsing logic for building a XML Document from XJMF DOM-Tree and the way around.
    • Constructor Detail

      • XJmfParser

        public XJmfParser()
                   throws jakarta.xml.bind.JAXBException
        Default constructor.
        Throws:
        jakarta.xml.bind.JAXBException - Thrown in case a JAXBException occurs.
    • Method Detail

      • parseXJmf

        public final void parseXJmf​(XJMF xjmf,
                                    java.io.OutputStream os)
                             throws jakarta.xml.bind.JAXBException
        Parse a XJMF Object Tree to a binary output stream.
        Parameters:
        xjmf - XJMF Object Tree for parsing.
        os - Target OutputStream where XJMF is being parsed.
        Throws:
        jakarta.xml.bind.JAXBException - Is thrown in case any error while un-/marshalling occurs.
      • parseXJmf

        public final void parseXJmf​(XJMF xjmf,
                                    java.io.OutputStream os,
                                    boolean skipValidation)
                             throws jakarta.xml.bind.JAXBException
        Parse a XJMF Object Tree to a binary output stream.
        Parameters:
        xjmf - XJMF Object Tree for parsing.
        os - Target OutputStream where XJMF is being parsed.
        skipValidation - Skip validation.
        Throws:
        jakarta.xml.bind.JAXBException
      • parseXJmf

        public final byte[] parseXJmf​(XJMF xjmf)
                               throws java.io.IOException,
                                      jakarta.xml.bind.JAXBException
        Parse a XJMF Object Tree to a byte array.
        Parameters:
        xjmf - XJMF Object Tree for parsing.
        Returns:
        XJMF as byte array.
        Throws:
        java.io.IOException - Is thrown in case any IO error occurs.
        jakarta.xml.bind.JAXBException
      • parseXJmf

        public final byte[] parseXJmf​(XJMF xjmf,
                                      boolean skipValidation)
                               throws jakarta.xml.bind.JAXBException,
                                      java.io.IOException
        Parse a XJMF Object Tree to a byte array.
        Parameters:
        xjmf - XJMF Object Tree for parsing.
        skipValidation - Skip validation.
        Returns:
        XJMF as byte array.
        Throws:
        jakarta.xml.bind.JAXBException - Is thrown in case any error while un-/marshalling occurs.
        java.io.IOException - Is thrown in case any IO error occurs.
      • getNamespacePrefixMapper

        protected final org.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper getNamespacePrefixMapper()
        Description copied from class: AbstractXmlParser
        Returns a new specific NamespacePrefixMapper implementation.
        Specified by:
        getNamespacePrefixMapper in class AbstractXmlParser<XJMF>
        Returns:
        New specific NamespacePrefixMapper implementation.