public void readOrThrow( byte[] b ) throws IOException { readOrThrow( b, 0, b.length ); }
public void readOrThrow( byte[] b ) throws IOException { readOrThrow( b, 0, b.length ); }
public String readString( int n ) throws IOException { byte buf[] = new byte[n]; readOrThrow( buf ); return new String( buf, "UTF8" ); }
public String readString( int n, Charset charset ) throws IOException { byte buf[] = new byte[n]; readOrThrow( buf ); return new String( buf, charset ); } }
public String readString( int n ) throws IOException { byte buf[] = new byte[n]; readOrThrow( buf ); return new String( buf, "UTF8" ); }
public String readString( int n, Charset charset ) throws IOException { byte buf[] = new byte[n]; readOrThrow( buf ); return new String( buf, charset ); } }
public int readUnsignedByte() throws IOException { readOrThrow( mByteArray, 0, 1 ); mByteBuffer.rewind(); return (mByteBuffer.get() & 0xff); }
public short readShort() throws IOException { readOrThrow( mByteArray, 0, 2 ); mByteBuffer.rewind(); return mByteBuffer.getShort(); }
public short readShort() throws IOException { readOrThrow( mByteArray, 0, 2 ); mByteBuffer.rewind(); return mByteBuffer.getShort(); }
public byte readByte() throws IOException { readOrThrow( mByteArray, 0, 1 ); mByteBuffer.rewind(); return mByteBuffer.get(); }
public int readUnsignedByte() throws IOException { readOrThrow( mByteArray, 0, 1 ); mByteBuffer.rewind(); return (mByteBuffer.get() & 0xff); }
public long readLong() throws IOException { readOrThrow( mByteArray, 0, 8 ); mByteBuffer.rewind(); return mByteBuffer.getLong(); }
public int readInt() throws IOException { readOrThrow( mByteArray, 0, 4 ); mByteBuffer.rewind(); return mByteBuffer.getInt(); }
public long readLong() throws IOException { readOrThrow( mByteArray, 0, 8 ); mByteBuffer.rewind(); return mByteBuffer.getLong(); }
public byte readByte() throws IOException { readOrThrow( mByteArray, 0, 1 ); mByteBuffer.rewind(); return mByteBuffer.get(); }
public int readInt() throws IOException { readOrThrow( mByteArray, 0, 4 ); mByteBuffer.rewind(); return mByteBuffer.getInt(); }