|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aelitis.azureus.core.peermanager.messaging.azureus.AZMetaData
public class AZMetaData
| Field Summary |
|---|
| Fields inherited from interface com.aelitis.azureus.core.peermanager.messaging.Message |
|---|
TYPE_DATA_PAYLOAD, TYPE_PROTOCOL_PAYLOAD |
| Fields inherited from interface com.aelitis.azureus.core.peermanager.messaging.azureus.AZUTMetaData |
|---|
MSG_TYPE_DATA, MSG_TYPE_REJECT, MSG_TYPE_REQUEST |
| Constructor Summary | |
|---|---|
AZMetaData(int _piece,
byte _version)
|
|
AZMetaData(int _piece,
java.nio.ByteBuffer _data,
int _total_size,
byte _version)
|
|
AZMetaData(java.util.Map map,
DirectByteBuffer data,
byte _version)
|
|
| Method Summary | |
|---|---|
Message |
deserialize(DirectByteBuffer data,
byte version)
Create a new instance of this message by decoding the given byte serialization. |
void |
destroy()
Destroy the message; i.e. |
DirectByteBuffer[] |
getData()
Get message payload data. |
java.lang.String |
getDescription()
Get textual description of this particular message. |
java.lang.String |
getFeatureID()
Get the main feature set name this message belongs to. |
int |
getFeatureSubID()
Get the static message sub-id for the feature. |
java.lang.String |
getID()
Get message id. |
byte[] |
getIDBytes()
|
int |
getMessageType()
|
DirectByteBuffer |
getMetadata()
|
int |
getPiece()
|
int |
getType()
Get message type. |
byte |
getVersion()
|
void |
setMetadata(DirectByteBuffer b)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AZMetaData(int _piece,
byte _version)
public AZMetaData(int _piece,
java.nio.ByteBuffer _data,
int _total_size,
byte _version)
public AZMetaData(java.util.Map map,
DirectByteBuffer data,
byte _version)
| Method Detail |
|---|
public java.lang.String getID()
Message
getID in interface Messagepublic byte[] getIDBytes()
getIDBytes in interface Messagepublic java.lang.String getFeatureID()
Message
getFeatureID in interface Messagepublic int getFeatureSubID()
Message
getFeatureSubID in interface Messagepublic int getType()
Message
getType in interface Messagepublic byte getVersion()
getVersion in interface Messagepublic java.lang.String getDescription()
Message
getDescription in interface Messagepublic int getMessageType()
getMessageType in interface AZUTMetaDatapublic int getPiece()
getPiece in interface AZUTMetaDatapublic DirectByteBuffer getMetadata()
getMetadata in interface AZUTMetaDatapublic void setMetadata(DirectByteBuffer b)
setMetadata in interface AZUTMetaDatapublic DirectByteBuffer[] getData()
Message
getData in interface Message
public Message deserialize(DirectByteBuffer data,
byte version)
throws MessageException
Message
deserialize in interface Messagedata - to deserialize
MessageException - if the decoding process fails
NOTE: Does not auto-return given direct buffer on thrown exception.public void destroy()
Message
destroy in interface AZUTMetaDatadestroy in interface Message
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||