read_uint16


Description:

public uint16 read_uint16 (Cancellable? cancellable = null) throws IOError

Reads an unsigned 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:

an unsigned 16-bit/2-byte value read from the this or 0 if an error occurred.