
public class MsgConvertUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPATIBLE_FIELD_MSGMODEL
To adapt this scene: "Notify client try to receive ObjectMessage sent by JMS client"
Set notify out message model, value can be textMessage OR objectMessage
|
static byte[] |
EMPTY_BYTES |
static String |
EMPTY_STRING |
static String |
JMS_MSGMODEL |
static String |
MSG_TOPIC |
static String |
MSG_TYPE |
static String |
MSGMODEL_BYTES |
static String |
MSGMODEL_OBJ |
static String |
MSGMODEL_TEXT |
| Constructor and Description |
|---|
MsgConvertUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
bytes2String(byte[] bs,
String charset) |
static Serializable |
objectDeserialize(byte[] bytes) |
static byte[] |
objectSerialize(Object object) |
static byte[] |
string2Bytes(String s,
String charset) |
public static final byte[] EMPTY_BYTES
public static final String EMPTY_STRING
public static final String JMS_MSGMODEL
public static final String COMPATIBLE_FIELD_MSGMODEL
public static final String MSGMODEL_TEXT
public static final String MSGMODEL_BYTES
public static final String MSGMODEL_OBJ
public static final String MSG_TOPIC
public static final String MSG_TYPE
public static byte[] objectSerialize(Object object) throws IOException
IOExceptionpublic static Serializable objectDeserialize(byte[] bytes) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright © 2012–2021. All rights reserved.