|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.hunnysoft.jmime.Node
com.hunnysoft.jmime.FieldBody
com.hunnysoft.jmime.Address
Abstract class that represents an RFC 2822 mail address.
Address represents a mail address as
described in
RFC 2822. You may not create instances of
Address, since Address is an abstract base
class. Instead, you must create instances of or Mailbox, which are subclasses of
GroupAddress.
If the string representation assigned to an Address is
improperly formed, then the parse method will fail. To determine if the
parse method failed, call the method. isValid()
| Field Summary | |
protected boolean |
mIsValid
|
| Fields inherited from class com.hunnysoft.jmime.FieldBody |
mText |
| Fields inherited from class com.hunnysoft.jmime.Node |
mIsModified, mParent, mString |
| Constructor Summary | |
protected |
Address()
Default constructor. |
protected |
Address(Address other)
Copy constructor. |
protected |
Address(ByteString bstr)
Constructor that takes an initial byte string argument. |
| Method Summary | |
boolean |
isValid()
Indicates if the address's syntax is valid. |
| Methods inherited from class com.hunnysoft.jmime.FieldBody |
assemble, clone, fold, isFoldingEnabled, maybeFold, parse, setFoldingEnabled, setText, text, unfold |
| Methods inherited from class com.hunnysoft.jmime.Node |
_setString, isModified, parent, setModified, setParent, setString, string, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected boolean mIsValid
| Constructor Detail |
protected Address()
This constructor sets the Address object's string
representation to the empty string and sets its parent node to
null.
protected Address(Address other)
This constructor performs a deep copy of its argument. The
parent node of the new Address object is set to
null.
other - Address instance to copyprotected Address(ByteString bstr)
This constructor sets the Address object's string
representation to bstr and sets its parent node to
null.
Normally, you call the parse() method immediately
after this constructor to create the broken-down
representation.
bstr - initial value for the string representation| Method Detail |
public final boolean isValid()
Returns true value if the last parse operation succeeded.
Returns false if the last parse operation failed (bad address) or
if the parse() method was never called.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||