Retrieves the length of the stream in bytes.
public long getLength()
Returns the current length of the stream.