Package network.oxalis.sniffer.document
Class NoSbdhParser
- java.lang.Object
-
- network.oxalis.sniffer.document.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 Summary
Constructors Constructor Description NoSbdhParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PeppolStandardBusinessHeaderoriginalParse(InputStream inputStream)Parses and extracts the data needed to create a PeppolStandardBusinessHeader object.network.oxalis.vefa.peppol.common.model.Headerparse(InputStream inputStream)Parses and extracts the data needed to create a PeppolStandardBusinessHeader object.
-
-
-
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:
parsein interfacenetwork.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
-
-