| Special "read(byte[])" equivalent for RMI.
This replaces:
- public int read(byte[] b) throws IOException
- public int read(byte[] b, int off, int len) throws IOException
The typical "read(byte[] ..)" methods will not work for RMI, since
the result must be serialized back as a separate Object.
This method uses the tmpBuf as the temporary byte[]
for reading from the stream. Typically the client reads in constant
amounts, such as "read(1024)", so this tmpBuf will match this size.
Parameters: len - number of bytes to read a byte[] of data, or null if the end of the stream has beenreached |