Class MessageFactory
- java.lang.Object
-
- org.johnnei.javatorrent.bittorrent.protocol.MessageFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessageFactory.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMessagecreateById(int id)Creates a new message instance which maps to the given ID
-
-
-
Method Detail
-
createById
public IMessage createById(int id)
Creates a new message instance which maps to the given ID- Parameters:
id- The ID of the message- Returns:
- New instance of the associated message
-
-