Package network.oxalis.vefa.peppol.sbdh
Class SbdWriter
- java.lang.Object
-
- network.oxalis.vefa.peppol.sbdh.SbdWriter
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class SbdWriter extends Object implements Closeable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputStreambinaryWriter(String mimeType)OutputStreambinaryWriter(String mimeType, String encoding)voidclose()static SbdWriternewInstance(OutputStream outputStream, Header header)OutputStreamtextWriter(String mimeType)XMLStreamWriterxmlWriter()
-
-
-
Method Detail
-
newInstance
public static SbdWriter newInstance(OutputStream outputStream, Header header) throws SbdhException
- Throws:
SbdhException
-
xmlWriter
public XMLStreamWriter xmlWriter()
-
binaryWriter
public OutputStream binaryWriter(String mimeType) throws XMLStreamException
- Throws:
XMLStreamException
-
binaryWriter
public OutputStream binaryWriter(String mimeType, String encoding) throws XMLStreamException
- Throws:
XMLStreamException
-
textWriter
public OutputStream textWriter(String mimeType) throws XMLStreamException
- Throws:
XMLStreamException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-