dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16034
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5970: Minor fix
------------------------------------------------------------
revno: 5970
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-02-15 19:08:10 +0100
message:
Minor fix
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/view/Jaxb2Utils.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/view/Jaxb2Utils.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/view/Jaxb2Utils.java 2012-02-15 17:54:32 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/view/Jaxb2Utils.java 2012-02-15 18:08:10 +0000
@@ -28,6 +28,7 @@
*/
import java.io.InputStream;
+import java.io.OutputStream;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
@@ -48,6 +49,12 @@
return marshaller;
}
+ public static void marshal( Object domainModel, OutputStream output )
+ throws JAXBException
+ {
+ Jaxb2Utils.createMarshaller( domainModel ).marshal( domainModel, output );
+ }
+
public static Unmarshaller createUnmarshaller( Class<?> clazz )
throws JAXBException
{