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.
|
Rank: Advanced Member
Joined: 6/16/2006 Posts: 487 Location: AT
|
ByteArrayOutputStream maybe? Or simply use com.altova.io.StringOutput()?
|