I am trying to create a sample which is getting InputStream
in the form of SocketInputStream
. It is not supported reset()
and mark()
. Now once I process this input stream I can process it again for other operation because it get closed, reached at eof.
Like I want to use this process for InputStream
which is allowing reset()
and markSupported()
.
How can I deal with InputStream
in such situation.