Package network.oxalis.sniffer.sbdh
Class SbdhWrapper
- java.lang.Object
-
- network.oxalis.sniffer.sbdh.SbdhWrapper
-
public class SbdhWrapper extends Object
Takes a document and wraps it together with headers into a StandardBusinessDocument.The SBDH part of the document is constructed from the headers. The document will be the payload (xs:any) following the SBDH.
- Author:
- thore, steinar, erlend
-
-
Constructor Summary
Constructors Constructor Description SbdhWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]wrap(InputStream inputStream, network.oxalis.vefa.peppol.common.model.Header headers)Wraps payload + headers into a StandardBusinessDocument
-
-
-
Method Detail
-
wrap
public byte[] wrap(InputStream inputStream, network.oxalis.vefa.peppol.common.model.Header headers)
Wraps payload + headers into a StandardBusinessDocument- Parameters:
inputStream- the input stream to be wrappedheaders- the headers to use for sbdh- Returns:
- byte buffer with the resulting output in utf-8
-
-