Stream.length

long length()

Gets the length of the stream.

Returns

the length of the stream or %-1 if unknown.