Package io.github.toolfactory.jvm.util
Class BufferHandler
java.lang.Object
io.github.toolfactory.jvm.util.BufferHandler
public class BufferHandler extends Object
-
Constructor Summary
Constructors Constructor Description BufferHandler() -
Method Summary
Modifier and Type Method Description static ByteBufferduplicate(ByteBuffer buffer)static <T extends Buffer>
Tflip(T buffer)static <T extends Buffer>
intlimit(T buffer)static <T extends Buffer>
intposition(T buffer)static ByteBuffershareContent(ByteBuffer byteBuffer)static byte[]toByteArray(ByteBuffer byteBuffer)
-
Constructor Details
-
BufferHandler
public BufferHandler()
-
-
Method Details
-
flip
-
position
-
duplicate
-
limit
-
toByteArray