Stream.length

Gets the length of the stream.

class Stream
long
length
()

Return Value

Type: long

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