net.freeutils.tnef

Class TRPAddress

public class TRPAddress extends Address

The TRPAddress class encapsulates a TRP-formatted address used in some TNEF message attributes.

Since: 2003-04-25

Field Summary
static inttrpidClassEntry
TRP Address ID constant.
static inttrpidGroupNSID
TRP Address ID constant.
static inttrpidIgnore
TRP Address ID constant.
static inttrpidNull
TRP Address ID constant.
static inttrpidOffline
TRP Address ID constant.
static inttrpidOneOff
TRP Address ID constant.
static inttrpidResolvedAddress
TRP Address ID constant.
static inttrpidResolvedGroupAddress
TRP Address ID constant.
static inttrpidResolvedNSID
TRP Address ID constant.
static inttrpidUnresolved
TRP Address ID constant.
Constructor Summary
TRPAddress(RawInputStream data)
Constructs a TRPAddress using the given TNEF stream.
TRPAddress(int ID, String displayName, String type, String address)
Constructs a TRPAddress containing the specified values.
Method Summary
intgetID()
Gets the TRPAddress ID.
StringtoString()
Returns a string representation of this object.

Field Detail

trpidClassEntry

public static final int trpidClassEntry
TRP Address ID constant.

trpidGroupNSID

public static final int trpidGroupNSID
TRP Address ID constant.

trpidIgnore

public static final int trpidIgnore
TRP Address ID constant.

trpidNull

public static final int trpidNull
TRP Address ID constant.

trpidOffline

public static final int trpidOffline
TRP Address ID constant.

trpidOneOff

public static final int trpidOneOff
TRP Address ID constant.

trpidResolvedAddress

public static final int trpidResolvedAddress
TRP Address ID constant.

trpidResolvedGroupAddress

public static final int trpidResolvedGroupAddress
TRP Address ID constant.

trpidResolvedNSID

public static final int trpidResolvedNSID
TRP Address ID constant.

trpidUnresolved

public static final int trpidUnresolved
TRP Address ID constant.

Constructor Detail

TRPAddress

public TRPAddress(RawInputStream data)
Constructs a TRPAddress using the given TNEF stream.

Parameters: data the TNEF stream to parse address from

Throws: IOException if the stream end is reached, or if an I/O error occurs

TRPAddress

public TRPAddress(int ID, String displayName, String type, String address)
Constructs a TRPAddress containing the specified values.

Parameters: ID the ID of the TRPAddress (from trpid* constants) displayName the display name associated with address type the address type address the address

Method Detail

getID

public int getID()
Gets the TRPAddress ID.

Returns: the TRPAddress ID

toString

public String toString()
Returns a string representation of this object.

Returns: a string representation of this object