public class Address
extends java.lang.Object
Address
class encapsulates an address used in some TNEF
message attributes.Constructor and Description |
---|
Address()
Constructs an empty Address.
|
Address(RawInputStream data)
Constructs an Address using the given TNEF stream.
|
Address(java.lang.String displayName,
java.lang.String type,
java.lang.String address)
Constructs a Address containing the specified values.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress()
Gets the address.
|
java.lang.String |
getDisplayName()
Gets the Address display name.
|
java.lang.String |
getType()
Gets the Address type.
|
java.lang.String |
toString()
Returns a string representation of this object.
|
public Address()
public Address(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 Address(java.lang.String displayName, java.lang.String type, java.lang.String address)
displayName
- the display name associated with addresstype
- the address typeaddress
- the addresspublic java.lang.String getDisplayName()
public java.lang.String getAddress()
public java.lang.String getType()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2021. All Rights Reserved.