@Override public boolean readBoolean() throws IOException { ensureAvailable(1); return (buffer[position++] != 0); }
@Override public int readUnsignedByte() throws IOException { ensureAvailable(1); return (buffer[position++] & 0xFF); }
@Override public int readUnsignedByte() throws IOException { ensureAvailable(1); return (buffer[position++] & 0xFF); }
@Override public char readChar() throws IOException { ensureAvailable(2); return (char)(((buffer[position++] & 0xFF) << 8) | (buffer[position++] & 0xFF)); }
@Override public short readShort() throws IOException { ensureAvailable(2); return (short)(((buffer[position++] & 0xFF) << 8) | (buffer[position++] & 0xFF)); }
@Override public int readUnsignedShort() throws IOException { ensureAvailable(2); return (((buffer[position++] & 0xFF) << 8) | (buffer[position++] & 0xFF)); }
@Override public int read() throws IOException { ensureAvailable(1); return buffer[position++]; }
@Override public byte readByte() throws IOException { ensureAvailable(1); return buffer[position++]; }
@Override public short readShort() throws IOException { ensureAvailable(2); return (short)(((buffer[position++] & 0xFF) << 8) | (buffer[position++] & 0xFF)); }
@Override public byte readByte() throws IOException { ensureAvailable(1); return buffer[position++]; }
@Override public int readUnsignedByte() throws IOException { ensureAvailable(1); return (buffer[position++] & 0xFF); }
@Override public int readUnsignedShort() throws IOException { ensureAvailable(2); return (((buffer[position++] & 0xFF) << 8) | (buffer[position++] & 0xFF)); }
@Override public byte readByte() throws IOException { ensureAvailable(1); return buffer[position++]; }
@Override public char readChar() throws IOException { ensureAvailable(2); return (char)(((buffer[position++] & 0xFF) << 8) | (buffer[position++] & 0xFF)); }
@Override public short readShort() throws IOException { ensureAvailable(2); return (short)(((buffer[position++] & 0xFF) << 8) | (buffer[position++] & 0xFF)); }
public Object readObject() throws IOException { ensureAvailable(1); int type = buffer[position++]; return readObject(type); }
public Object readObject() throws IOException { ensureAvailable(1); int type = buffer[position++]; return readObject(type); }
protected Double readAMF3Double() throws IOException { ensureAvailable(8); double d = Double.longBitsToDouble(readLongData(buffer, position)); position += 8; return Double.isNaN(d) ? null : d; }
protected Double readAMF3Double() throws IOException { ensureAvailable(8); double d = Double.longBitsToDouble(readLongData(buffer, position)); position += 8; return Double.isNaN(d) ? null : d; }
public Object readObject() throws IOException { ensureAvailable(1); int type = buffer[position++]; return readObject(type); }