obtain a std::ostream from a java object?
Howdy,
I'm using SWIG to create a java wrapping of a library (DCMTK) which has methods that take a std::ostream parameter. I can certainly write C++ code that returns a std::cout or that opens a file and returns me the ostream.
However, java already has nice stream classes that can go to a file, a socket, a memory buffer, etc. I'd prefer to piggyback on that. If possible, I'd like to somehow obtain a std::ostream from one of the java stream classes, e.g. java OutputStream.
How could I accomplish that?
Thanks,
-Steve

