[jboss-cvs] JBossAS SVN: r86056 - branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/repository.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Mar 18 12:01:00 EDT 2009
Author: emuckenhuber
Date: 2009-03-18 12:01:00 -0400 (Wed, 18 Mar 2009)
New Revision: 86056
Modified:
branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/repository/JAXBAttachmentSerializer.java
Log:
use outputStream instead of File
Modified: branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/repository/JAXBAttachmentSerializer.java
===================================================================
--- branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/repository/JAXBAttachmentSerializer.java 2009-03-18 15:47:14 UTC (rev 86055)
+++ branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/repository/JAXBAttachmentSerializer.java 2009-03-18 16:01:00 UTC (rev 86056)
@@ -23,7 +23,9 @@
import java.io.File;
import java.io.FileInputStream;
+import java.io.FileOutputStream;
import java.io.InputStream;
+import java.io.OutputStream;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.Marshaller;
@@ -86,7 +88,8 @@
JAXBContext ctx = JAXBContext.newInstance(attachment.getClass());
Marshaller marshaller = ctx.createMarshaller();
marshaller.setProperty("jaxb.formatted.output", Boolean.TRUE);
- marshaller.marshal(attachment, attachmentsStore);
+ OutputStream os = new FileOutputStream(attachmentsStore);
+ marshaller.marshal(attachment, os);
}
@Override
More information about the jboss-cvs-commits
mailing list