public class SetDateMessage extends I2CPMessageImpl
| Modifier and Type | Field and Description |
|---|---|
static int | MESSAGE_TYPEMESSAGE_TYPE. |
| Constructor and Description |
|---|
SetDateMessage()SetDateMessage. |
SetDateMessage(String version)Router's version String to be sent to the client; may be null. |
| Modifier and Type | Method and Description |
|---|---|
protected void | doReadMessage(InputStream in,
int size)doReadMessage. |
protected byte[] | doWriteMessage()doWriteMessage. |
Date | getDate()Date. |
int | getType()Type. |
String | getVersion()Gets the protocol version. |
void | setDate(Date date)setDate. |
String | toString()Returns a string representation of this message. |
readBytes, readMessage, readMessage, sessionId, writeBytes, writeMessagepublic static final int MESSAGE_TYPE
public SetDateMessage()
public SetDateMessage(String version)
version - the router's version String to be sent to the client; may be nullprotected 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 Date getDate()
public int getType()
public String getVersion()
public void setDate(Date date)