How can I check if an InputStream is empty without reading from it?

Posted by Jenny Smith on Stack Overflow See other posts from Stack Overflow or by Jenny Smith
Published on 2009-10-06T08:32:08Z Indexed on 2010/03/15 6:49 UTC
Read the original article Hit count: 206

Filed under:
|
|

I want to know if an InputStreamn is empty, but without using the methods read(). Is there a way to know if it's empty without reading from it?

© Stack Overflow or respective owner

Related posts about java

Related posts about inputstream