Writes the contents of the specified short integer array to this stream.
public void writeShorts( short[] buffer )
public void writeShorts( short[] buffer, int index, int count )
buffer
The short integer array containing the data to write.
index
The starting index in the array.
count
The number of short integers to write.
IOException thrown if an I/O error occurs or if the stream does not support writing.
The number of bytes written to the stream is buffer.length * 2. The current position is advanced by count * 2 bytes.
See Also readShorts