类 javax.mail.Flags
的使用

使用 Flags 的软件包
com.sun.mail.imap An IMAP protocol provider for the JavaMail API that provides access to an IMAP message store. 
com.sun.mail.imap.protocol   
com.sun.mail.pop3 A POP3 protocol provider for the JavaMail API that provides access to a POP3 message store. 
javax.mail The JavaMailTM API provides classes that model a mail system. 
javax.mail.internet Classes specific to Internet mail systems. 
javax.mail.search Message search terms for the JavaMail API. 
 

com.sun.mail.imapFlags 的使用
 

声明为 Flagscom.sun.mail.imap 中的字段
protected  Flags IMAPFolder.availableFlags
           
protected  Flags IMAPFolder.permanentFlags
           
 

返回 Flagscom.sun.mail.imap 中的方法
 Flags IMAPMessage.getFlags()
          Get the Flags for this message.
 Flags IMAPFolder.getPermanentFlags()
          Return the permanent flags supported by the server.
 

参数类型为 Flagscom.sun.mail.imap 中的方法
 void IMAPNestedMessage.setFlags(Flags flag, boolean set)
           
 void IMAPMessage.setFlags(Flags flag, boolean set)
          Set/Unset the given flags in this message.
 void IMAPFolder.setFlags(Message[] msgs, Flags flag, boolean value)
          Set the specified flags for the given array of messages.
 

com.sun.mail.imap.protocolFlags 的使用
 

com.sun.mail.imap.protocolFlags 的子类
 class FLAGS
          This class
 

声明为 Flagscom.sun.mail.imap.protocol 中的字段
 Flags MailboxInfo.availableFlags
           
 Flags MailboxInfo.permanentFlags
           
 

返回 Flagscom.sun.mail.imap.protocol 中的方法
 Flags IMAPProtocol.fetchFlags(int msgno)
          Fetch the FLAGS for the given message.
 

参数类型为 Flagscom.sun.mail.imap.protocol 中的方法
 void IMAPProtocol.append(String mbox, Flags f, Date d, Literal data)
          APPEND Command.
 AppendUID IMAPProtocol.appenduid(String mbox, Flags f, Date d, Literal data)
          APPEND Command, return uid from APPENDUID response code.
 AppendUID IMAPProtocol.appenduid(String mbox, Flags f, Date d, Literal data, boolean uid)
           
 void IMAPProtocol.storeFlags(int msg, Flags flags, boolean set)
          Set the specified flags on this message.
 void IMAPProtocol.storeFlags(int start, int end, Flags flags, boolean set)
           
 void IMAPProtocol.storeFlags(MessageSet[] msgsets, Flags flags, boolean set)
           
 

com.sun.mail.pop3Flags 的使用
 

返回 Flagscom.sun.mail.pop3 中的方法
 Flags POP3Folder.getPermanentFlags()
          Always returns an empty Flags object because the POP3 protocol doesn't support any permanent flags.
 Flags DefaultFolder.getPermanentFlags()
           
 

参数类型为 Flagscom.sun.mail.pop3 中的方法
 void POP3Message.setFlags(Flags newFlags, boolean set)
          Set the specified flags on this message to the specified value.
 

javax.mailFlags 的使用
 

返回 Flagsjavax.mail 中的方法
abstract  Flags Message.getFlags()
          Returns a Flags object containing the flags for this message.
abstract  Flags Folder.getPermanentFlags()
          Get the permanent flags supported by this Folder.
 

参数类型为 Flagsjavax.mail 中的方法
 void Flags.add(Flags f)
          Add all the flags in the given Flags object to this Flags object.
 boolean Flags.contains(Flags f)
          Check whether all the flags in the specified Flags object are present in this Flags object.
 void Flags.remove(Flags f)
          Remove all flags in the given Flags object from this Flags object.
abstract  void Message.setFlags(Flags flag, boolean set)
          Set the specified flags on this message to the specified value.
 void Folder.setFlags(int[] msgnums, Flags flag, boolean value)
          Set the specified flags on the messages whose message numbers are in the array.
 void Folder.setFlags(int start, int end, Flags flag, boolean value)
          Set the specified flags on the messages numbered from start through end, both start and end inclusive.
 void Folder.setFlags(Message[] msgs, Flags flag, boolean value)
          Set the specified flags on the messages specified in the array.
 

参数类型为 Flagsjavax.mail 中的构造方法
Flags(Flags flags)
          Construct a Flags object initialized with the given flags.
 

javax.mail.internetFlags 的使用
 

声明为 Flagsjavax.mail.internet 中的字段
protected  Flags MimeMessage.flags
          The Flags for this message.
 

返回 Flagsjavax.mail.internet 中的方法
 Flags MimeMessage.getFlags()
          Return a Flags object containing the flags for this message.
 

参数类型为 Flagsjavax.mail.internet 中的方法
 void MimeMessage.setFlags(Flags flag, boolean set)
          Set the flags for this message.
 

javax.mail.searchFlags 的使用
 

声明为 Flagsjavax.mail.search 中的字段
protected  Flags FlagTerm.flags
          Flags object containing the flags to test.
 

返回 Flagsjavax.mail.search 中的方法
 Flags FlagTerm.getFlags()
          Return the Flags to test.
 

参数类型为 Flagsjavax.mail.search 中的构造方法
FlagTerm(Flags flags, boolean set)
          Constructor.
 



Copyright © 2013. All Rights Reserved.