diff options
Diffstat (limited to 'utils/src/main/java/at')
-rw-r--r-- | utils/src/main/java/at/gv/egiz/slbinding/SLUnmarshaller.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/src/main/java/at/gv/egiz/slbinding/SLUnmarshaller.java b/utils/src/main/java/at/gv/egiz/slbinding/SLUnmarshaller.java index c69fd681..518723d8 100644 --- a/utils/src/main/java/at/gv/egiz/slbinding/SLUnmarshaller.java +++ b/utils/src/main/java/at/gv/egiz/slbinding/SLUnmarshaller.java @@ -228,7 +228,13 @@ public class SLUnmarshaller { this.jaxbContext = createJAXBContext(packageNames); } - public Object unmarshal(StreamSource source) throws XMLStreamException, JAXBException { + /** + * @param source a StreamSource wrapping a Reader (!) for the marshalled Object + * @return the unmarshalled Object + * @throws XMLStreamException + * @throws JAXBException + */ +public Object unmarshal(StreamSource source) throws XMLStreamException, JAXBException { ReportingValidationEventHandler validationEventHandler = new ReportingValidationEventHandler(); XMLInputFactory inputFactory = XMLInputFactory.newInstance(); |