DataStream.writeCore

Overview | Methods | This Package | All Packages

DataStream.writeCore

Implements the core array write method.

Syntax

protected void writeCore( Object buffer, int offset, int count )

Parameters

buffer

An array of primitive types to write.

offset

The byte offset into buffer.

count

The number of bytes in buffer to write.

Exceptions

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

Remarks

This method is called from the other array writing methods of this class. The method writes count bytes of data from 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 this method to provide the appropriate functionality.