public char read_char() { long l = this.read_long(true); char i = (char)l; if (l != (i & 0xffffL)) { throw new OtpErlangDecodeException("Value does not fit in char: " + l); } return i; }