public interface KnownLength
InputStream
or alike whose total number of bytes that can be read is known
upfront.
Usually it's a InputStream
that also implements this interface, in which case
InputStream.available()
has a stronger semantic by returning an accurate number
instead of an estimation.
Modifier and Type | Method and Description |
---|---|
int |
available()
Returns the total number of bytes that can be read (or skipped over) from this object until all
bytes have been read out.
|
int available() throws IOException
IOException