Java I/O - Reuse InputStream Object
问题 Is there anyway to reuse an inputStream by changing its content? (Without new statement). For instance, I was able to something very close to my requirement, but not enough In the following code I am using a SequenceInputStream , and everytime I am adding a new InputStream to that sequence. But I would like to do the same thing by using the same inputStream (I don't care which implementation of InputStream ). I thought about mark() / reset() APIs, but i still need to change the content to be