Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

DataStream.readCore

Implements the core array read method.

Syntax

protected int readCore( Object buffer**, int** offset**, int** count )

Parameters

buffer

An array of primitive types to be read.

offset

The byte offset into buffer.

count

The number of bytes in buffer to read.

Return Value

Returns an array of data from this stream.

Exceptions

IOException thrown if an error occurs or if the stream does not support reading.

Remarks

This method is called from the other array reading methods of this class. This method reads count bytes of data into buffer starting at offset. The buffer parameter is guaranteed to be of type byte[], char[], short[], int[], long[], float[], or double[]. The default implementation throws an IOException, but a subclass can override the method to provide the appropriate functionality.