|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rtpi.packets.SourceDescriptionItem
This class is used to define SDES items that are to be used for the creation of SDES packets.
Field Summary | |
static int |
CNAME
The ID for a CNAME item. |
static int |
EMAIL
The ID for an EMAIL item. |
static int |
LOC
The ID for a LOCation item. |
static int |
NAME
The ID for a NAME item. |
static int |
NOTE
The ID for a NOTE item. |
static int |
PHONE
The ID for a PHONE item. |
static int |
PRIV
The ID for a PRIVate extension item. |
static int |
TOOL
The ID for a TOOL item. |
Constructor Summary | |
SourceDescriptionItem(byte[] d,
byte[] p)
This creates a new PRIV SDES item. |
|
SourceDescriptionItem(int t,
byte[] d)
This creates a new SDES item (not a PRIV item!). |
Method Summary | |
byte[] |
getData()
This returns the item data. |
byte[] |
getPrefix()
This returns the prefix of a PRIV SDES item. |
int |
getType()
This returns the type ID of the SDES item. |
java.lang.String |
toString()
This returns this SDES item as a string. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int CNAME
public static final int NAME
public static final int EMAIL
public static final int PHONE
public static final int LOC
public static final int TOOL
public static final int NOTE
public static final int PRIV
Constructor Detail |
public SourceDescriptionItem(int t, byte[] d) throws IllegalValueException
t
- The type ID of this item.d
- The item data.public SourceDescriptionItem(byte[] d, byte[] p) throws IllegalValueException
d
- The item data.p
- The PRIV item prefix.Method Detail |
public int getType()
public byte[] getData()
public byte[] getPrefix() throws IllegalValueException
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |