Reading several bytes at once

The basic read() method reads a byte at a time. This is less than perfectly efficient. The following two overloaded variants read multiple bytes into an array of bytes.
Copyright 2000 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified March 17, 2000