Reads the next byte of data from this stream.
public int read()
public int read( byte[] buffer, int index, int count )
buffer
The array to read data into.
index
The starting index into the array.
count
The number of bytes to read.
Returns the number of bytes that were read.
This method implements the IByteStream.read method. The default implementation raises an IOException, but a subclass can override the method to provide the appropriate functionality. The first syntax reads the next byte of data from the stream. The second syntax validates the arguments and then calls the readCore method to read the data.