public class ControlledByteBuffer extends Object
Constructor and Description |
---|
ControlledByteBuffer(ByteBuffer byteBuffer) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
compact() |
void |
flip() |
void |
forceSetInputMode() |
byte |
get() |
ByteBuffer |
get(byte[] dst,
int offset,
int length) |
ByteBuffer |
getByteBuffer() |
boolean |
hasRemaining() |
int |
position() |
void |
put(byte b) |
ByteBuffer |
put(byte[] src,
int offset,
int length) |
void |
putInt(int value) |
int |
remaining() |
boolean |
setInputMode() |
boolean |
setOutputMode() |
public ControlledByteBuffer(ByteBuffer byteBuffer)
public ByteBuffer getByteBuffer()
public boolean setInputMode()
public boolean setOutputMode()
public void forceSetInputMode()
public void flip()
public void clear()
public void compact()
public int position()
public void put(byte b)
public void putInt(int value)
public ByteBuffer put(byte[] src, int offset, int length)
public boolean hasRemaining()
public byte get()
public ByteBuffer get(byte[] dst, int offset, int length)
public int remaining()
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.