public class MessageUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getLength(Map<Integer,Integer> map) |
static int |
getLength(String content) |
static Date |
readDate(ByteBuffer buffer) |
static Map<Integer,Integer> |
readMap(ByteBuffer buffer) |
static String |
readString(ByteBuffer buffer) |
static void |
writeDate(ByteBuffer buffer,
Date date) |
static void |
writeMap(ByteBuffer buffer,
Map<Integer,Integer> map) |
static void |
writeString(ByteBuffer buffer,
String content) |
public static Date readDate(ByteBuffer buffer)
public static void writeDate(ByteBuffer buffer, Date date)
public static String readString(ByteBuffer buffer)
public static void writeString(ByteBuffer buffer, String content)
public static int getLength(String content)
public static Map<Integer,Integer> readMap(ByteBuffer buffer)
public static void writeMap(ByteBuffer buffer, Map<Integer,Integer> map)
Copyright © 2021. All rights reserved.