rice.p2p.past
Class PastImpl.PastDeserializer
java.lang.Object
rice.p2p.past.PastImpl.PastDeserializer
- All Implemented Interfaces:
- MessageDeserializer
- Direct Known Subclasses:
- GCPastImpl.GCPastDeserializer
- Enclosing class:
- PastImpl
protected class PastImpl.PastDeserializer
- extends Object
- implements MessageDeserializer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PastImpl.PastDeserializer
protected PastImpl.PastDeserializer()
deserialize
public Message deserialize(InputBuffer buf,
short type,
int priority,
NodeHandle sender)
throws IOException
- Description copied from interface:
MessageDeserializer
- Typical implementation:
RawMessage ret = super.deserialize();
if (ret != null) return ret;
Endpoint endpoint;
switch(type) {
case 1:
return new MyMessage(buf, endpoint);
}
- Specified by:
deserialize in interface MessageDeserializer
- Parameters:
buf - accessor to the bytestype - the message type, defined in RawMessage.getType()priority - the priority of the messagesender - the sender of the Message (may be null if not specified).
- Returns:
- The deserialized message.
- Throws:
IOException
Copyright © 2010. All Rights Reserved.