Class NoSbdhParser

  • All Implemented Interfaces:
    network.oxalis.api.transformer.ContentDetector

    public class NoSbdhParser
    extends Object
    implements network.oxalis.api.transformer.ContentDetector
    Parses UBL based documents, which are not wrapped within an SBDH, extracting data and creating a PeppolStandardBusinessHeader.
    Author:
    steinar, thore
    • Constructor Detail

      • NoSbdhParser

        public NoSbdhParser()
    • Method Detail

      • parse

        public network.oxalis.vefa.peppol.common.model.Header parse​(InputStream inputStream)
                                                             throws network.oxalis.api.lang.OxalisContentException
        Parses and extracts the data needed to create a PeppolStandardBusinessHeader object. The inputstream supplied should not be wrapped in an SBDH.
        Specified by:
        parse in interface network.oxalis.api.transformer.ContentDetector
        Parameters:
        inputStream - UBL XML data without an SBDH.
        Returns:
        an instance of Header populated with data from the UBL XML document.
        Throws:
        network.oxalis.api.lang.OxalisContentException
      • originalParse

        public PeppolStandardBusinessHeader originalParse​(InputStream inputStream)
                                                   throws network.oxalis.api.lang.OxalisContentException
        Parses and extracts the data needed to create a PeppolStandardBusinessHeader object. The inputstream supplied should not be wrapped in an SBDH.
        Parameters:
        inputStream - UBL XML data without an SBDH.
        Returns:
        an instance of PeppolStandardBusinessHeader populated with data from the UBL XML document.
        Throws:
        network.oxalis.api.lang.OxalisContentException