Package fr.dyade.aaa.common.encoding
Interface Encodable
-
- All Known Implementing Classes:
AbortReceiveRequest,AbstractJmsMessage,AbstractJmsReply,AbstractJmsRequest,AbstractNotification,AbstractReplyNot,AbstractRequestNot,AcknowledgeRequest,AcquisitionNot,AcquisitionQueue,AcquisitionTopic,ActivateConsumerRequest,AddClientIDReply,AddClientIDRequest,AdminNotification,AdminReplyNot,AdminRequestNot,AdminSyncNotification,AdminTopic,Agent,AgentCreateReply,AgentCreateRequest,AgentDeleteRequest,AgentFactory,AgentId,AliasInQueue,AliasQueue,AMQPAgent,AMQPRequestNot,AMQPResponseNot,BrowseReply,BrowseRequest,CallbackNotification,ClientContext,ClientMessages,ClientSubscription,ClientSubscriptionNot,CloseConnectionNot,CloseConnectionNot2,ClusterJoinAck,ClusterJoinNot,ClusterLBNot,ClusterQueue,ClusterRemoveNot,CnxCloseReply,CnxCloseRequest,CnxConnectReply,CnxConnectRequest,CnxStartRequest,CnxStopRequest,CommitRequest,ConsumerAckRequest,ConsumerCloseSubRequest,ConsumerDenyRequest,ConsumerMessages,ConsumerReceiveRequest,ConsumerSetListRequest,ConsumerSubRequest,ConsumerUnsetListRequest,ConsumerUnsubRequest,Container,DeleteAck,DeleteNot,DenyRequest,Destination,DistributionQueue,DistributionTopic,ElasticTopic,EncodableInteger,EncodedString,EncodedStringList,ExceptionNotification,ExceptionReply,ExpiredNot,FlowControlNot,FtpNot,FtpQueue,FwdAdminRequestNot,GetAdminTopicReply,GetAdminTopicRequest,GetClientSubscriptions,GetConnectionNot,GetProxyIdListNot,GetProxyIdNot,GetRightsReplyNot,GetRightsRequestNot,InitJndiServerNot,JmsRequestGroup,JndiReplyNot,JndiScriptReplyNot,JndiScriptRequestNot,JndiUpdateNot,LBCycleLife,LBLoadingFactor,LBMessageGive,LBMessageHope,Message,Message,Message,MessageIdListImpl,MomExceptionReply,Notification,OpenConnectionNot,PingNot,PingRequest,PongNot,ProducerMessages,Properties,ProxyRequestGroupNot,QBrowseReply,QBrowseRequest,Queue,QueueArrivalState,QueueDelivery,QueueDeliveryTable,QueueDeliveryTimeNot,QueueMsgReply,ReceiveRequest,ReconnectSubscribersNot,RequestGroupNot,RequestNot,ResetCollocatedConnectionsNot,RestartNot,ReturnConnectionNot,SchedulerQueue,SchedulerQueueNot,SendRepliesNot,SendReplyNot,SerializableWrapper,ServerReply,SessAckRequest,SessCreateDestReply,SessCreateDestRequest,SessDenyRequest,StringPair,SubscribeReply,SubscribeRequest,SynchronousAgent,SyncNotification,SyncReply,SyncReplyNot,SyncRequestNot,TcpRequestNot,TempDestDeleteRequest,Topic,TopicDeliveryTimeNot,TopicForwardNot,TopicMsgsReply,UnknownAgent,UnknownNotification,UnsubscribeRequest,UserAgent,UserAgentArrivalState,WakeUpNot,XACnxCommit,XACnxPrepare,XACnxRecoverReply,XACnxRecoverRequest,XACnxRollback,Xid
public interface EncodableThis interface has to be provided by every object that needs to be encoded according to the encoding framework.
-
-
Field Summary
Fields Modifier and Type Field Description static intBOOLEAN_ENCODED_SIZEstatic intBYTE_ENCODED_SIZEstatic intDOUBLE_ENCODED_SIZEstatic intFLOAT_ENCODED_SIZEstatic intINT_ENCODED_SIZEstatic intLONG_ENCODED_SIZEstatic intSHORT_ENCODED_SIZE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddecode(Decoder decoder)Decodes the content of this objectvoidencode(Encoder encoder)Encodes the content of this objectintgetEncodableClassId()Returns a unique class identifier.intgetEncodedSize()Returns the size of the byte array that results from the encoding of this object.
-
-
-
Field Detail
-
BOOLEAN_ENCODED_SIZE
static final int BOOLEAN_ENCODED_SIZE
- See Also:
- Constant Field Values
-
BYTE_ENCODED_SIZE
static final int BYTE_ENCODED_SIZE
- See Also:
- Constant Field Values
-
SHORT_ENCODED_SIZE
static final int SHORT_ENCODED_SIZE
- See Also:
- Constant Field Values
-
INT_ENCODED_SIZE
static final int INT_ENCODED_SIZE
- See Also:
- Constant Field Values
-
LONG_ENCODED_SIZE
static final int LONG_ENCODED_SIZE
- See Also:
- Constant Field Values
-
FLOAT_ENCODED_SIZE
static final int FLOAT_ENCODED_SIZE
- See Also:
- Constant Field Values
-
DOUBLE_ENCODED_SIZE
static final int DOUBLE_ENCODED_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEncodableClassId
int getEncodableClassId()
Returns a unique class identifier.- Returns:
- a unique class identifier
-
getEncodedSize
int getEncodedSize() throws ExceptionReturns the size of the byte array that results from the encoding of this object.- Returns:
- the size of the encoded byte array
- Throws:
Exception- if an error occurs
-
encode
void encode(Encoder encoder) throws Exception
Encodes the content of this object- Parameters:
encoder- the encoder to be used for the encoding- Throws:
Exception- if an error occurs
-
-