read_int16


Description:

public int16 read_int16 (Cancellable? cancellable = null) throws IOError

Reads a 16-bit/2-byte value from this.

In order to get the correct byte order for this read operation, see get_byte_order and set_byte_order.

Parameters:

this

a given DataInputStream.

cancellable

optional Cancellable object, null to ignore.

Returns:

a signed 16-bit/2-byte value read from this or `0` if an error occurred.