bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/24596] Return value of getResourceAsStream().available()


From: mark at gcc dot gnu dot org
Subject: [Bug classpath/24596] Return value of getResourceAsStream().available() in jar file
Date: 31 Oct 2005 20:48:08 -0000


------- Comment #2 from mark at gcc dot gnu dot org  2005-10-31 20:48 -------
Interesting. This comes from ZipInputStream.available() which according
to JCL 2e v1 is specified as: "returns 0 if this ZipInputStream has been
closed; otherwise, it returns 1. Unlike the conventional definition of
available(), this method does NOT return the actual number of bytes that
could be read without blocking."

Is this always, or only for (un)compressed jar entries?
What are the number you expect with the example you posted?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24596





reply via email to

[Prev in Thread] Current Thread [Next in Thread]