public short read_ushort ( ) throws OtpErlangDecodeException { final long l = this . read_long ( true ) ; final short i = ( short ) l ; if ( l != ( i & 0xffff L ) ) { throw new OtpErlangDecodeException ( "Value does not fit in ushort: " + l ) ; } return i ; }
Read an unsigned short from the stream .