DataStructure
, I2CPMessage
public 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, toByteArray
calculateHash, fromBase64, fromByteArray, read, toBase64, toByteArray
readBytes, readMessage, writeBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
doReadMessage, doWriteMessage, getDestination, getNonce, getPayload, getSessionId, sessionId, setDestination, setNonce, setPayload, setSessionId
public 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
インタフェース内 I2CPMessage
readMessage
クラス内 SendMessageMessage
in
- stream to read fromlength
- number of bytes in the message payloadtype
- type of message (should equal getType())java.io.IOException
I2CPMessageException
- 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
インタフェース内 I2CPMessage
writeMessage
クラス内 SendMessageMessage
out
- OutputStreamjava.io.IOException
I2CPMessageException
- if the current object doesn't have sufficient data
to write a properly formatted message.public int getType()
I2CPMessage
getType
インタフェース内 I2CPMessage
getType
クラス内 SendMessageMessage
public java.lang.String toString()
toString
クラス内 SendMessageMessage