public class TRPAddress extends Address
TRPAddress
class encapsulates a TRP-formatted address used
in some TNEF message attributes.Modifier and Type | Field and Description |
---|---|
static int |
trpidClassEntry
TRP Address ID constant.
|
static int |
trpidGroupNSID
TRP Address ID constant.
|
static int |
trpidIgnore
TRP Address ID constant.
|
static int |
trpidNull
TRP Address ID constant.
|
static int |
trpidOffline
TRP Address ID constant.
|
static int |
trpidOneOff
TRP Address ID constant.
|
static int |
trpidResolvedAddress
TRP Address ID constant.
|
static int |
trpidResolvedGroupAddress
TRP Address ID constant.
|
static int |
trpidResolvedNSID
TRP Address ID constant.
|
static int |
trpidUnresolved
TRP Address ID constant.
|
Constructor and Description |
---|
TRPAddress(int ID,
java.lang.String displayName,
java.lang.String type,
java.lang.String address)
Constructs a TRPAddress containing the specified values.
|
TRPAddress(RawInputStream data)
Constructs a TRPAddress using the given TNEF stream.
|
Modifier and Type | Method and Description |
---|---|
int |
getID()
Gets the TRPAddress ID.
|
java.lang.String |
toString()
Returns a string representation of this object.
|
getAddress, getDisplayName, getType
public static final int trpidNull
public static final int trpidUnresolved
public static final int trpidResolvedNSID
public static final int trpidResolvedAddress
public static final int trpidOneOff
public static final int trpidGroupNSID
public static final int trpidOffline
public static final int trpidIgnore
public static final int trpidClassEntry
public static final int trpidResolvedGroupAddress
public TRPAddress(RawInputStream data) throws java.io.IOException
data
- the TNEF stream to parse address fromjava.io.IOException
- if the stream end is reached, or if an I/O error occurspublic TRPAddress(int ID, java.lang.String displayName, java.lang.String type, java.lang.String address)
ID
- the ID of the TRPAddress (from trpid* constants)displayName
- the display name associated with addresstype
- the address typeaddress
- the addressCopyright © 2021. All Rights Reserved.