public class DeliveryInstructions
extends net.i2p.data.DataStructureImpl
| Modifier and Type | Field and 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 and Description |
|---|
DeliveryInstructions() |
| Modifier and Type | Method and 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
|
net.i2p.data.Hash |
getDestination()
default null
|
boolean |
getEncrypted()
Deprecated.
unused
|
net.i2p.data.SessionKey |
getEncryptionKey()
Deprecated.
unused
|
net.i2p.data.Hash |
getRouter()
default null
|
int |
getSize() |
net.i2p.data.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(net.i2p.data.Hash dest)
required for DESTINATION
|
void |
setEncrypted(boolean encrypted)
Deprecated.
unused
|
void |
setEncryptionKey(net.i2p.data.SessionKey key)
Deprecated.
unused
|
void |
setRouter(net.i2p.data.Hash router)
required for ROUTER or TUNNEL
|
void |
setTunnelId(net.i2p.data.TunnelId id)
required for TUNNEL
|
String |
toString() |
int |
writeBytes(byte[] target,
int offset) |
void |
writeBytes(OutputStream out)
Deprecated.
unused
|
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 net.i2p.data.DataFormatException
net.i2p.data.DataFormatException@Deprecated public boolean getEncrypted()
@Deprecated public void setEncrypted(boolean encrypted)
@Deprecated public net.i2p.data.SessionKey getEncryptionKey()
@Deprecated public void setEncryptionKey(net.i2p.data.SessionKey key)
public int getDeliveryMode()
public void setDeliveryMode(int mode)
mode - 0-3public net.i2p.data.Hash getDestination()
public void setDestination(net.i2p.data.Hash dest)
public net.i2p.data.Hash getRouter()
public void setRouter(net.i2p.data.Hash router)
public net.i2p.data.TunnelId getTunnelId()
public void setTunnelId(net.i2p.data.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)
UnsupportedOperationException - alwayspublic int readBytes(byte[] data,
int offset)
throws net.i2p.data.DataFormatException
net.i2p.data.DataFormatException@Deprecated public void writeBytes(OutputStream out)
UnsupportedOperationException - alwayspublic int writeBytes(byte[] target,
int offset)
public int getSize()