In java I’m having an inputstream (maybe sequenceinputstream) containing more than one file. I want to separate those files using java. Is there any solution available in java?
In java I’m having an inputstream (maybe sequenceinputstream ) containing more than one file.
Share
The simple answer is: you can’t / shouldn’t.
The complicated answer: in case you are dealing with a
SequenceInputStream, you can access the underlying streams using this reflection hack:But I would be very careful about using something like this.