Class ByteBufferUtil
java.lang.Object
org.teamapps.universaldb.cluster.message.ByteBufferUtil
public class ByteBufferUtil
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description ByteBufferUtil() -
Method Summary
Modifier and Type Method Description static java.nio.ByteBuffercreate(byte[] bytes)static byte[]getBytesWithHeader(java.nio.ByteBuffer buffer)static java.lang.StringgetStringWithHeader(java.nio.ByteBuffer buffer)static voidputBytesWithHeader(byte[] bytes, java.nio.ByteBuffer buffer)static voidputStringWithHeader(java.lang.String value, java.nio.ByteBuffer buffer)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ByteBufferUtil
public ByteBufferUtil()
-
-
Method Details
-
create
public static java.nio.ByteBuffer create(byte[] bytes) -
putBytesWithHeader
public static void putBytesWithHeader(byte[] bytes, java.nio.ByteBuffer buffer) -
getBytesWithHeader
public static byte[] getBytesWithHeader(java.nio.ByteBuffer buffer) -
putStringWithHeader
public static void putStringWithHeader(java.lang.String value, java.nio.ByteBuffer buffer) -
getStringWithHeader
public static java.lang.String getStringWithHeader(java.nio.ByteBuffer buffer)
-