FileDocCategorySizeDatePackage
Message.javaAPI DocAndroid 1.5 API3856Wed May 06 22:42:46 BST 2009com.android.email.mail

Message

public abstract class Message extends Object implements Part, Body

Fields Summary
protected String
mUid
protected HashSet
mFlags
protected Date
mInternalDate
protected Folder
mFolder
Constructors Summary
Methods Summary
public abstract voidaddHeader(java.lang.String name, java.lang.String value)

public abstract BodygetBody()

public abstract java.lang.StringgetContentType()

public Flag[]getFlags()

        return mFlags.toArray(new Flag[] {});
    
public FoldergetFolder()

        return mFolder;
    
public abstract Address[]getFrom()

public abstract java.lang.String[]getHeader(java.lang.String name)

public java.util.DategetInternalDate()

        return mInternalDate;
    
public abstract java.util.DategetReceivedDate()

public abstract Address[]getRecipients(com.android.email.mail.Message$RecipientType type)

public abstract Address[]getReplyTo()

public abstract java.util.DategetSentDate()

public abstract java.lang.StringgetSubject()

public java.lang.StringgetUid()


       
        return mUid;
    
public booleanisMimeType(java.lang.String mimeType)

        return getContentType().startsWith(mimeType);
    
public booleanisSet(Flag flag)

        return mFlags.contains(flag);
    
public abstract voidremoveHeader(java.lang.String name)

public abstract voidsaveChanges()

public abstract voidsetBody(Body body)

public voidsetFlag(Flag flag, boolean set)

        if (set) {
            mFlags.add(flag);
        } else {
            mFlags.remove(flag);
        }
    
public voidsetFlags(Flag[] flags, boolean set)
This method calls setFlag(Flag, boolean)

param
flags
param
set

        for (Flag flag : flags) {
            setFlag(flag, set);
        }
    
public abstract voidsetFrom(Address from)

public abstract voidsetHeader(java.lang.String name, java.lang.String value)

public voidsetInternalDate(java.util.Date internalDate)

        this.mInternalDate = internalDate;
    
public voidsetRecipient(com.android.email.mail.Message$RecipientType type, Address address)

        setRecipients(type, new Address[] {
            address
        });
    
public abstract voidsetRecipients(com.android.email.mail.Message$RecipientType type, Address[] addresses)

public abstract voidsetReplyTo(Address[] from)

public abstract voidsetSentDate(java.util.Date sentDate)

public abstract voidsetSubject(java.lang.String subject)

public voidsetUid(java.lang.String uid)

        this.mUid = uid;