DataStream.read

Overview | Methods | This Package | All Packages

DataStream.read

Reads the next byte of data from this stream.

Syntax

public int read()

public int read( byte[] buffer, int index, int count )

Parameters

buffer

The array to read data into.

index

The starting index into the array.

count

The number of bytes to read.

Return Value

Returns the number of bytes that were read.

Remarks

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.