Package network.oxalis.vefa.peppol.sbdh
Class SbdReader
- java.lang.Object
-
- network.oxalis.vefa.peppol.sbdh.SbdReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class SbdReader extends Object implements Closeable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSbdReader.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreambinaryReader()voidclose()HeadergetHeader()SbdReader.TypegetType()static SbdReadernewInstance(InputStream inputStream)static SbdReadernewInstance(XMLStreamReader xmlStreamReader)InputStreamtextReader()XMLStreamReaderxmlReader()
-
-
-
Method Detail
-
newInstance
public static SbdReader newInstance(InputStream inputStream) throws SbdhException
- Throws:
SbdhException
-
newInstance
public static SbdReader newInstance(XMLStreamReader xmlStreamReader) throws SbdhException
- Throws:
SbdhException
-
getHeader
public Header getHeader()
-
getType
public SbdReader.Type getType()
-
xmlReader
public XMLStreamReader xmlReader()
-
binaryReader
public InputStream binaryReader() throws XMLStreamException
- Throws:
XMLStreamException
-
textReader
public InputStream textReader() throws XMLStreamException
- Throws:
XMLStreamException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-