InputStream.available() == 0 as a way to detect if stream is empty ?.
I need to determine if an InputStream is empty without actually reading the whole stream. Can i depend on available() returning 0.
The javadoc seems to indicate that would be fine, but i may be misinterpreting it
an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking or 0 when it reaches the end of the input stream.