Class ControlledByteBuffer
- java.lang.Object
-
- org.apache.synapse.transport.passthru.util.ControlledByteBuffer
-
public class ControlledByteBuffer extends Object
-
-
Constructor Summary
Constructors Constructor Description ControlledByteBuffer(ByteBuffer byteBuffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcapacity()voidclear()voidcompact()voidflip()voidforceSetInputMode()byteget()ByteBufferget(byte[] dst, int offset, int length)ByteBuffergetByteBuffer()booleanhasRemaining()booleanisInputMode()intposition()voidput(byte b)ByteBufferput(byte[] src, int offset, int length)voidputInt(int value)intremaining()booleansetInputMode()booleansetOutputMode()
-
-
-
Constructor Detail
-
ControlledByteBuffer
public ControlledByteBuffer(ByteBuffer byteBuffer)
-
-
Method Detail
-
isInputMode
public boolean isInputMode()
-
getByteBuffer
public ByteBuffer getByteBuffer()
-
setInputMode
public boolean setInputMode()
-
setOutputMode
public boolean setOutputMode()
-
forceSetInputMode
public void forceSetInputMode()
-
flip
public void flip()
-
clear
public void clear()
-
compact
public void compact()
-
position
public int position()
-
capacity
public int capacity()
-
put
public void put(byte b)
-
putInt
public void putInt(int value)
-
put
public ByteBuffer put(byte[] src, int offset, int length)
-
hasRemaining
public boolean hasRemaining()
-
get
public byte get()
-
get
public ByteBuffer get(byte[] dst, int offset, int length)
-
remaining
public int remaining()
-
-