Serializable
, DataStructure
public class DeliveryInstructions extends DataStructureImpl
Modifier and Type | Field | Description |
---|---|---|
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
|
Constructor | Description |
---|---|
DeliveryInstructions() |
Modifier and Type | Method | Description |
---|---|---|
static DeliveryInstructions |
create(byte[] data,
int offset) |
Returns immutable local instructions, or new
|
boolean |
equals(Object obj) |
|
boolean |
getDelayRequested() |
Deprecated.
unused
|
long |
getDelaySeconds() |
Deprecated.
unused
|
int |
getDeliveryMode() |
default -1
|
Hash |
getDestination() |
default null
|
boolean |
getEncrypted() |
Deprecated.
unused
|
SessionKey |
getEncryptionKey() |
Deprecated.
unused
|
Hash |
getRouter() |
default null
|
int |
getSize() |
|
TunnelId |
getTunnelId() |
default null
|
int |
hashCode() |
|
int |
readBytes(byte[] data,
int offset) |
|
void |
readBytes(InputStream in) |
Deprecated.
unused
|
void |
setDelayRequested(boolean req) |
Deprecated.
unused
|
void |
setDelaySeconds(long seconds) |
Deprecated.
unused
|
void |
setDeliveryMode(int mode) |
|
void |
setDestination(Hash dest) |
required for DESTINATION
|
void |
setEncrypted(boolean encrypted) |
Deprecated.
unused
|
void |
setEncryptionKey(SessionKey key) |
Deprecated.
unused
|
void |
setRouter(Hash router) |
required for ROUTER or TUNNEL
|
void |
setTunnelId(TunnelId id) |
required for TUNNEL
|
String |
toString() |
|
int |
writeBytes(byte[] target,
int offset) |
|
void |
writeBytes(OutputStream out) |
Deprecated.
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(InputStream in)
DataStructure
in
- stream to read fromUnsupportedOperationException
- alwayspublic int readBytes(byte[] data, int offset) throws DataFormatException
DataFormatException
@Deprecated public void writeBytes(OutputStream out)
DataStructure
out
- stream to write toUnsupportedOperationException
- alwayspublic int writeBytes(byte[] target, int offset)
public int getSize()