Code example for ByteBuffer

Methods: order

0
    private ByteBuffer in;
 
    public void init(ByteBuffer in)
    { 
        this.in = in;
        this.in.order(ByteOrder.BIG_ENDIAN);
    } 
 
    public void releaseBuffer() 
    { 
        in = null;
    } 
 
    protected byte doGet() 
    { 
        return in.get();
    } 
 
    protected void doGet(byte[] bytes)
    { 
        in.get(bytes);