com.aelitis.azureus.core.peermanager.messaging.bittorrent.ltep
Class LTMessageDecoder

java.lang.Object
  extended by com.aelitis.azureus.core.peermanager.messaging.bittorrent.BTMessageDecoder
      extended by com.aelitis.azureus.core.peermanager.messaging.bittorrent.ltep.LTMessageDecoder
All Implemented Interfaces:
MessageStreamDecoder

public class LTMessageDecoder
extends BTMessageDecoder

Author:
Allan Crooks

Constructor Summary
LTMessageDecoder()
           
 
Method Summary
static void addDefaultExtensionHandler(long id, byte[] message_id)
           
 void addExtensionHandler(byte id, byte[] message_id)
           
protected  Message createMessage(DirectByteBuffer ref_buff)
           
static void removeDefaultExtensionHandler(long id)
           
 void removeExtensionHandler(byte id)
           
 
Methods inherited from class com.aelitis.azureus.core.peermanager.messaging.bittorrent.BTMessageDecoder
destroy, getDataBytesDecoded, getPercentDoneOfCurrentMessage, getProtocolBytesDecoded, pauseDecoding, performStreamDecode, removeDecodedMessages, resumeDecoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LTMessageDecoder

public LTMessageDecoder()
Method Detail

addDefaultExtensionHandler

public static void addDefaultExtensionHandler(long id,
                                              byte[] message_id)

removeDefaultExtensionHandler

public static void removeDefaultExtensionHandler(long id)

createMessage

protected Message createMessage(DirectByteBuffer ref_buff)
                         throws MessageException
Overrides:
createMessage in class BTMessageDecoder
Throws:
MessageException

addExtensionHandler

public void addExtensionHandler(byte id,
                                byte[] message_id)

removeExtensionHandler

public void removeExtensionHandler(byte id)