IDataStream.readShort

Overview | Methods | This Package | All Packages

IDataStream.readShort

Reads a short value from this stream.

Syntax

public short readShort()

Return Value

Returns the short value that was read.

Exceptions

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

EOFException thrown if the end of the stream is reached before two bytes could be read.

Remarks

The current position is advanced by two bytes.

See Also   writeShort