I'm using an API (Jasper Reports) to generate PDFs and I'd like to do most of it in memory. I'm already able to get the generated file as an OutputStream
, now I'm just looking for an implementor to use to keep things in memory which implements InputStream
as well.
What class can I use which functions as both an OutputStream
and an InputStream
on in-memory data?