com.taobao.metamorphosis.client.extension.spring
接口 MessageBodyConverter<T>

类型参数:
T -
所有已知实现类:
JavaSerializationMessageBodyConverter

public interface MessageBodyConverter<T>

Messge body object converter.

从以下版本开始:
1.4.5
作者:
dennis

方法摘要
 T fromByteArray(byte[] bs)
          Convert a byte array to message object.
 byte[] toByteArray(T body)
          Convert a message object to byte array.
 

方法详细信息

toByteArray

byte[] toByteArray(T body)
                   throws MetaClientException
Convert a message object to byte array.

参数:
body -
返回:
抛出:
MetaClientException

fromByteArray

T fromByteArray(byte[] bs)
                throws MetaClientException
Convert a byte array to message object.

参数:
bs -
返回:
抛出:
MetaClientException


Copyright © 2010–2013. All rights reserved.