FileDocCategorySizeDatePackage
GenericMessage.javaAPI DocAzureus 3.0.3.42476Sun Mar 04 21:08:16 GMT 2007org.gudy.azureus2.pluginsimpl.local.messaging

GenericMessage

public class GenericMessage extends Object implements com.aelitis.azureus.core.peermanager.messaging.Message

Fields Summary
private org.gudy.azureus2.core3.util.DirectByteBuffer
buffer
private final String
id
private final String
desc
private final boolean
already_encoded
Constructors Summary
protected GenericMessage(String _id, String _desc, org.gudy.azureus2.core3.util.DirectByteBuffer _buffer, boolean _already_encoded)

	
	
	
						
						
			
						 
	
		id				= _id;
		desc			= _desc;
		buffer			= _buffer;
		already_encoded	= _already_encoded;
	
Methods Summary
public com.aelitis.azureus.core.peermanager.messaging.Messagedeserialize(org.gudy.azureus2.core3.util.DirectByteBuffer data, byte version)

		throw( new MessageException( "not imp" ));
	
public voiddestroy()

		buffer.returnToPool();
	
public org.gudy.azureus2.core3.util.DirectByteBuffer[]getData()

		return new DirectByteBuffer[]{ buffer };
	
public java.lang.StringgetDescription()

		return( desc );
	
public java.lang.StringgetFeatureID()

		return( null );
	
public intgetFeatureSubID()

		return(0);
	
public java.lang.StringgetID()

		return( id );
	
public byte[]getIDBytes()

		return( id.getBytes());
	
public org.gudy.azureus2.core3.util.DirectByteBuffergetPayload()

		return( buffer );
	
public intgetType()

		return( TYPE_DATA_PAYLOAD );
	
public bytegetVersion()

		return( 1 );
	
protected booleanisAlreadyEncoded()

		return( already_encoded );