IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

OutputStream to Memory Options · View
leesutton
Posted: Thursday, November 13, 2014 2:32:02 AM
Rank: Newbie

Joined: 11/13/2014
Posts: 1
Location: Montreal, QC
I am looking for a solution to be able to put output from generated Java code into memory in place of temporary files / FileOutputStream(s).

...
FileOutputStream tempFileOutputStream = new FileOutputStream("C:/AppendixText.out.txt");
com.altova.io.StreamOutput os = new com.altova.io.StreamOutput(tempFileOutputStream);
...

Is there an alternative that would allow the output to go straight to memory alone? The output itself is fairly small, 120 character text.

that
Posted: Thursday, November 13, 2014 1:07:13 PM
Rank: Advanced Member

Joined: 6/16/2006
Posts: 486
Location: AT
ByteArrayOutputStream maybe?
Or simply use com.altova.io.StringOutput()?
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.