Top Description Methods
io.grpc

public Interface KnownLength

Known Direct Implementers
io.grpc.ServerInterceptors.KnownLengthBufferedInputStream
Imports
java.io.IOException

An java.io.InputStream or alike whose total number of bytes that can be read is known upfront.

Usually it's a java.io.InputStream that also implements this interface, in which case java.io.InputStream#available() has a stronger semantic by returning an accurate number instead of an estimation.

Method Summary

Modifier and TypeMethod and Description
public 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.

Method Detail

availableback to summary
public int available() throws IOException

Returns the total number of bytes that can be read (or skipped over) from this object until all bytes have been read out.