public class DestReplyMessage extends I2CPMessageImpl
| Modifier and Type | Field and Description |
|---|---|
static int | MESSAGE_TYPEMESSAGE_TYPE. |
| Constructor and Description |
|---|
DestReplyMessage()DestReplyMessage. |
DestReplyMessage(Destination d)DestReplyMessage. |
DestReplyMessage(Hash h)Non-null with non-null data. |
| Modifier and Type | Method and Description |
|---|---|
protected void | doReadMessage(InputStream in,
int size)doReadMessage. |
protected byte[] | doWriteMessage()doWriteMessage. |
Destination | getDestination()Destination. |
Hash | getHash()Gets the hash of the destination. |
int | getType()Type. |
String | toString()Returns a string representation of this message. |
readBytes, readMessage, readMessage, sessionId, writeBytes, writeMessagepublic static final int MESSAGE_TYPE
public DestReplyMessage()
public DestReplyMessage(Destination d)
public DestReplyMessage(Hash h)
h - non-null with non-null dataprotected void doReadMessage(InputStream in, int size) throws I2CPMessageException, IOException
doReadMessage in class I2CPMessageImplin - InputStreamsize - payload sizeI2CPMessageException - if the message format is invalidIOException - if there's an error reading from the streamprotected byte[] doWriteMessage()
throws I2CPMessageException,
IOExceptiondoWriteMessage in class I2CPMessageImplI2CPMessageException - if the message cannot be writtenIOException - if there's an error writing to the streampublic Destination getDestination()
public Hash getHash()
public int getType()