The Flags object defines the message flags set for a particular message. System defined flags are specified in the Flags.Flag inner class. User defined flags may be specified as String objects, and are not case-sensitive.

                  Type Of
public class Flags implements Cloneable, Serializable {
// Public Constructors
   public Flags();  
   public Flags( String flag);  
   public Flags( Flags.Flag flag);  
   public Flags( Flags flags);  
// Inner Classes
   public static final class Flag; 
// Public Instance Methods
   public void add( String flag);  
   public void add( Flags.Flag flag);  
   public void add( Flags f);  
   public boolean contains( Flags f);  
   public boolean contains( Flags.Flag flag);  
   public boolean contains( String flag);  
   public Flags.Flag[] getSystemFlags();  
   public String[] getUserFlags();  
   public void remove( Flags.Flag flag);  
   public void remove( String flag);  
   public void remove( Flags f);  
// Public Methods Overriding Object
   public Object clone();  
   public boolean equals( Object obj);  
   public int hashCode();  

Passed To

Flags.{add(), contains(), Flags(), remove()}, Folder.setFlags(), javax.mail.Message.setFlags(), javax.mail.internet.MimeMessage.setFlags(),

Returned By

Folder.getPermanentFlags(), javax.mail.Message.getFlags(), javax.mail.internet.MimeMessage.getFlags(),

Type Of

javax.mail.internet.MimeMessage.flags, ...

Get Java Enterprise in a Nutshell, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.