Java Objects and Input Streams
Hi, my problem is this:
I have a LOAD method (from JasperReports API) that either takes in an XML file, an InputSource, or an InputStream object. My program loads an XML file and modifes it on-the-fly. Once I've modifed the XML file, how can I pass to that LOAD method without having to write the modified XML out to an actual file and then passing it to that method? Is there a way to pass java objects to InputStreams?
Thanks!
I have a LOAD method (from JasperReports API) that either takes in an XML file, an InputSource, or an InputStream object. My program loads an XML file and modifes it on-the-fly. Once I've modifed the XML file, how can I pass to that LOAD method without having to write the modified XML out to an actual file and then passing it to that method? Is there a way to pass java objects to InputStreams?
Thanks!
