M
manjunath.d
Hi Friends,
I require your help in implementing a copy of InputStream objects.
My scenario is that I need to pass InputStream objects to a 3rd party
application, which closes the stream. *But*, I require the same
InputStream object for querying for other attributes. Basically, What I
mean is that, I need to make copy of InputStream object and then use
each object for the 3rd party application
InputStream inputStream = getFileStream();
for(int i = 0; i < attrs.length; i++)
{
ThirdParty.process( inputStream, attrs);
//But basically, the inputStream gets closed after first
iteration.
}
Please note: I cannot invoke getFileStream each time. My App receives
the inputStream obj from another application
Thanks
I require your help in implementing a copy of InputStream objects.
My scenario is that I need to pass InputStream objects to a 3rd party
application, which closes the stream. *But*, I require the same
InputStream object for querying for other attributes. Basically, What I
mean is that, I need to make copy of InputStream object and then use
each object for the 3rd party application
InputStream inputStream = getFileStream();
for(int i = 0; i < attrs.length; i++)
{
ThirdParty.process( inputStream, attrs);
//But basically, the inputStream gets closed after first
iteration.
}
Please note: I cannot invoke getFileStream each time. My App receives
the inputStream obj from another application
Thanks