that you can read the entirety of the stream without needing
 to resize the container. Such callers should probably write everything they read to a
 <code><a href="../../../reference/java/io/ByteArrayOutputStream.html">ByteArrayOutputStream</a></code> and convert that to a byte array. Alternatively, if you're
 reading from a file, <code><a href="../../../reference/java/io/File.html#length()">length()</a></code> returns the current length of the file (though
 assuming the file's length can't change may be in