|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openvpms.esci.ubl.io.UBLDocumentReader
public class UBLDocumentReader
UBL Document reader.
Constructor Summary | |
---|---|
UBLDocumentReader(UBLDocumentContext context)
Constructs an UBLDocumentReader. |
Method Summary | |
---|---|
Object |
read(File file)
Reads an UBL document from a file. |
Object |
read(InputStream stream)
Reads an UBL document from a stream. |
Object |
read(InputStream stream,
boolean validate)
Reads an UBL document from a stream, optionally performing validation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UBLDocumentReader(UBLDocumentContext context)
context
- the document contextMethod Detail |
---|
public Object read(File file) throws FileNotFoundException, JAXBException
file
- the file to read from
FileNotFoundException
- if the file cannot be found
JAXBException
- if the document cannot be readpublic Object read(InputStream stream) throws JAXBException
stream
- the stream to read from
JAXBException
- if the document cannot be readpublic Object read(InputStream stream, boolean validate) throws JAXBException
stream
- the stream to read fromvalidate
- if true validate the document
JAXBException
- if the document cannot be read
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |