DataStructure
public class DeliveryInstructions extends DataStructureImpl
修飾子とタイプ | フィールド | 説明 |
---|---|---|
static int |
DELIVERY_MODE_DESTINATION |
|
static int |
DELIVERY_MODE_LOCAL |
|
static int |
DELIVERY_MODE_ROUTER |
|
static int |
DELIVERY_MODE_TUNNEL |
|
static DeliveryInstructions |
LOCAL |
Immutable local instructions, no options
|
コンストラクタ | 説明 |
---|---|
DeliveryInstructions() |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
static DeliveryInstructions |
create(byte[] data,
int offset) |
Returns immutable local instructions, or new
|
boolean |
equals(java.lang.Object obj) |
|
boolean |
getDelayRequested() |
推奨されていません。
unused
|
long |
getDelaySeconds() |
推奨されていません。
unused
|
int |
getDeliveryMode() |
default -1
|
Hash |
getDestination() |
default null
|
boolean |
getEncrypted() |
推奨されていません。
unused
|
SessionKey |
getEncryptionKey() |
推奨されていません。
unused
|
Hash |
getRouter() |
default null
|
int |
getSize() |
|
TunnelId |
getTunnelId() |
default null
|
int |
hashCode() |
|
int |
readBytes(byte[] data,
int offset) |
|
void |
readBytes(java.io.InputStream in) |
推奨されていません。
unused
|
void |
setDelayRequested(boolean req) |
推奨されていません。
unused
|
void |
setDelaySeconds(long seconds) |
推奨されていません。
unused
|
void |
setDeliveryMode(int mode) |
|
void |
setDestination(Hash dest) |
required for DESTINATION
|
void |
setEncrypted(boolean encrypted) |
推奨されていません。
unused
|
void |
setEncryptionKey(SessionKey key) |
推奨されていません。
unused
|
void |
setRouter(Hash router) |
required for ROUTER or TUNNEL
|
void |
setTunnelId(TunnelId id) |
required for TUNNEL
|
java.lang.String |
toString() |
|
int |
writeBytes(byte[] target,
int offset) |
|
void |
writeBytes(java.io.OutputStream out) |
推奨されていません。
unused
|
calculateHash, fromBase64, fromByteArray, read, toBase64, toByteArray
public static final int DELIVERY_MODE_LOCAL
public static final int DELIVERY_MODE_DESTINATION
public static final int DELIVERY_MODE_ROUTER
public static final int DELIVERY_MODE_TUNNEL
public static final DeliveryInstructions LOCAL
public static DeliveryInstructions create(byte[] data, int offset) throws DataFormatException
DataFormatException
@Deprecated public boolean getEncrypted()
@Deprecated public void setEncrypted(boolean encrypted)
@Deprecated public SessionKey getEncryptionKey()
@Deprecated public void setEncryptionKey(SessionKey key)
public int getDeliveryMode()
public void setDeliveryMode(int mode)
mode
- 0-3public Hash getDestination()
public void setDestination(Hash dest)
public Hash getRouter()
public void setRouter(Hash router)
public TunnelId getTunnelId()
public void setTunnelId(TunnelId id)
@Deprecated public boolean getDelayRequested()
@Deprecated public void setDelayRequested(boolean req)
@Deprecated public long getDelaySeconds()
@Deprecated public void setDelaySeconds(long seconds)
@Deprecated public void readBytes(java.io.InputStream in) throws DataFormatException, java.io.IOException
DataStructure
in
- stream to read fromDataFormatException
- if the data is improperly formattedjava.io.IOException
- if there was a problem reading the streampublic int readBytes(byte[] data, int offset) throws DataFormatException
@Deprecated public void writeBytes(java.io.OutputStream out) throws DataFormatException, java.io.IOException
DataStructure
out
- stream to write toDataFormatException
- if the data was incomplete or not yet ready to be writtenjava.io.IOException
- if there was a problem writing to the streampublic int writeBytes(byte[] target, int offset)
public int getSize()
public boolean equals(java.lang.Object obj)
equals
クラス内 java.lang.Object
public int hashCode()
hashCode
クラス内 java.lang.Object
public java.lang.String toString()
toString
クラス内 java.lang.Object