DataStructure, I2CPMessagepublic class SendMessageExpiresMessage extends SendMessageMessage
| 修飾子とタイプ | フィールド | 説明 |
|---|---|---|
static int |
MESSAGE_TYPE |
_destination, _nonce, _payload, _sessionId| コンストラクタ | 説明 |
|---|---|
SendMessageExpiresMessage() |
|
SendMessageExpiresMessage(DateAndFlags options) |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
java.util.Date |
getExpiration() |
The Date object is created here, it is not cached.
|
long |
getExpirationTime() |
Use this instead of getExpiration().getTime()
|
int |
getFlags() |
|
int |
getType() |
Return the unique identifier for this type of message, as specified in the
network specification document under #ClientAccessLayerMessages
|
void |
readMessage(java.io.InputStream in,
int length,
int type) |
Read the body into the data structures
|
void |
setExpiration(long d) |
|
void |
setExpiration(java.util.Date d) |
|
void |
setFlags(int f) |
|
java.lang.String |
toString() |
|
void |
writeMessage(java.io.OutputStream out) |
Write out the full message to the stream, including the 4 byte size and 1
byte type header.
|
calculateHash, fromBase64, fromByteArray, toBase64, toByteArraycalculateHash, fromBase64, fromByteArray, read, toBase64, toByteArrayreadBytes, readMessage, writeBytesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdoReadMessage, doWriteMessage, getDestination, getNonce, getPayload, getSessionId, sessionId, setDestination, setNonce, setPayload, setSessionIdpublic static final int MESSAGE_TYPE
public SendMessageExpiresMessage()
public SendMessageExpiresMessage(DateAndFlags options)
public java.util.Date getExpiration()
public long getExpirationTime()
public void setExpiration(java.util.Date d)
public void setExpiration(long d)
public int getFlags()
public void setFlags(int f)
public void readMessage(java.io.InputStream in,
int length,
int type)
throws I2CPMessageException,
java.io.IOException
readMessage インタフェース内 I2CPMessagereadMessage クラス内 SendMessageMessagein - stream to read fromlength - number of bytes in the message payloadtype - type of message (should equal getType())java.io.IOExceptionI2CPMessageException - if the stream doesn't contain a valid message
that this class can read.public void writeMessage(java.io.OutputStream out)
throws I2CPMessageException,
java.io.IOException
writeMessage インタフェース内 I2CPMessagewriteMessage クラス内 SendMessageMessageout - OutputStreamjava.io.IOExceptionI2CPMessageException - if the current object doesn't have sufficient data
to write a properly formatted message.public int getType()
I2CPMessagegetType インタフェース内 I2CPMessagegetType クラス内 SendMessageMessagepublic java.lang.String toString()
toString クラス内 SendMessageMessage