summaryrefslogtreecommitdiff
path: root/utils/src/main/java/at/gv/egiz/slbinding
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2011-08-30 18:03:49 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2011-08-30 18:03:49 +0000
commit2beded5445fb86f1b8d46b6594cad1b5ba962690 (patch)
treef1ac126fd56e41d2f251b1b0a9e40fdc5c01972d /utils/src/main/java/at/gv/egiz/slbinding
parent56230b91a944a2f5edac2bb3a513d4afd384ea94 (diff)
downloadmocca-2beded5445fb86f1b8d46b6594cad1b5ba962690.tar.gz
mocca-2beded5445fb86f1b8d46b6594cad1b5ba962690.tar.bz2
mocca-2beded5445fb86f1b8d46b6594cad1b5ba962690.zip
Update to sjsxp 1.0.2
This version doesn't support creating an XMLEventReader from a StreamSource git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@964 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'utils/src/main/java/at/gv/egiz/slbinding')
-rw-r--r--utils/src/main/java/at/gv/egiz/slbinding/SLUnmarshaller.java5
1 files changed, 2 insertions, 3 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 8475a1a9..654dc850 100644
--- a/utils/src/main/java/at/gv/egiz/slbinding/SLUnmarshaller.java
+++ b/utils/src/main/java/at/gv/egiz/slbinding/SLUnmarshaller.java
@@ -228,12 +228,11 @@ public class SLUnmarshaller {
this.jaxbContext = createJAXBContext(packageNames);
}
- public Object unmarshal(Source source) throws XMLStreamException, JAXBException {
+ public Object unmarshal(StreamSource source) throws XMLStreamException, JAXBException {
ReportingValidationEventHandler validationEventHandler = new ReportingValidationEventHandler();
-
XMLInputFactory inputFactory = XMLInputFactory.newInstance();
- XMLEventReader eventReader = inputFactory.createXMLEventReader(source);
+ XMLEventReader eventReader = inputFactory.createXMLEventReader(source.getReader());
RedirectEventFilter redirectEventFilter = new RedirectEventFilter();
XMLEventReader filteredReader = inputFactory.createFilteredReader(eventReader, redirectEventFilter);