net.freeutils.tnef

Class Address

public class Address extends Object

The Address class encapsulates an address used in some TNEF message attributes.

Since: 2003-04-25

Constructor Summary
Address()
Constructs an empty Address.
Address(RawInputStream data)
Constructs an Address using the given TNEF stream.
Address(String displayName, String type, String address)
Constructs a Address containing the specified values.
Method Summary
StringgetAddress()
Gets the address.
StringgetDisplayName()
Gets the Address display name.
StringgetType()
Gets the Address type.
StringtoString()
Returns a string representation of this object.

Constructor Detail

Address

public Address()
Constructs an empty Address.

Address

public Address(RawInputStream data)
Constructs an Address 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

Address

public Address(String displayName, String type, String address)
Constructs a Address containing the specified values.

Parameters: displayName the display name associated with address type the address type address the address

Method Detail

getAddress

public String getAddress()
Gets the address.

Returns: the address

getDisplayName

public String getDisplayName()
Gets the Address display name.

Returns: the Address display name

getType

public String getType()
Gets the Address type.

Returns: the Address type

toString

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

Returns: a string representation of this object