📄 folder.html
字号:
<TD><CODE><B><A HREF="../../javax/mail/Folder.html#listSubscribed(java.lang.String)">listSubscribed</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> pattern)</CODE><BR> Returns a list of subscribed Folders belonging to this Folder's namespace that match the specified pattern. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#notifyConnectionListeners(int)">notifyConnectionListeners</A></B>(int type)</CODE><BR> Notify all ConnectionListeners. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#notifyFolderListeners(int)">notifyFolderListeners</A></B>(int type)</CODE><BR> Notify all FolderListeners registered on this Folder and this folder's Store. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#notifyFolderRenamedListeners(javax.mail.Folder)">notifyFolderRenamedListeners</A></B>(<A HREF="../../javax/mail/Folder.html" title="class in javax.mail">Folder</A> folder)</CODE><BR> Notify all FolderListeners registered on this Folder and this folder's Store about the renaming of this folder. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#notifyMessageAddedListeners(javax.mail.Message[])">notifyMessageAddedListeners</A></B>(<A HREF="../../javax/mail/Message.html" title="class in javax.mail">Message</A>[] msgs)</CODE><BR> Notify all MessageCountListeners about the addition of messages into this folder. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#notifyMessageChangedListeners(int, javax.mail.Message)">notifyMessageChangedListeners</A></B>(int type, <A HREF="../../javax/mail/Message.html" title="class in javax.mail">Message</A> msg)</CODE><BR> Notify all MessageChangedListeners. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#notifyMessageRemovedListeners(boolean, javax.mail.Message[])">notifyMessageRemovedListeners</A></B>(boolean removed, <A HREF="../../javax/mail/Message.html" title="class in javax.mail">Message</A>[] msgs)</CODE><BR> Notify all MessageCountListeners about the removal of messages from this Folder. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#open(int)">open</A></B>(int mode)</CODE><BR> Open this Folder. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#removeConnectionListener(javax.mail.event.ConnectionListener)">removeConnectionListener</A></B>(<A HREF="../../javax/mail/event/ConnectionListener.html" title="interface in javax.mail.event">ConnectionListener</A> l)</CODE><BR> Remove a Connection event listener. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#removeFolderListener(javax.mail.event.FolderListener)">removeFolderListener</A></B>(<A HREF="../../javax/mail/event/FolderListener.html" title="interface in javax.mail.event">FolderListener</A> l)</CODE><BR> Remove a Folder event listener. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#removeMessageChangedListener(javax.mail.event.MessageChangedListener)">removeMessageChangedListener</A></B>(<A HREF="../../javax/mail/event/MessageChangedListener.html" title="interface in javax.mail.event">MessageChangedListener</A> l)</CODE><BR> Remove a MessageChanged listener. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#removeMessageCountListener(javax.mail.event.MessageCountListener)">removeMessageCountListener</A></B>(<A HREF="../../javax/mail/event/MessageCountListener.html" title="interface in javax.mail.event">MessageCountListener</A> l)</CODE><BR> Remove a MessageCount listener. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#renameTo(javax.mail.Folder)">renameTo</A></B>(<A HREF="../../javax/mail/Folder.html" title="class in javax.mail">Folder</A> f)</CODE><BR> Rename this Folder. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/mail/Message.html" title="class in javax.mail">Message</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#search(javax.mail.search.SearchTerm)">search</A></B>(<A HREF="../../javax/mail/search/SearchTerm.html" title="class in javax.mail.search">SearchTerm</A> term)</CODE><BR> Search this Folder for messages matching the specified search criterion. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/mail/Message.html" title="class in javax.mail">Message</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#search(javax.mail.search.SearchTerm, javax.mail.Message[])">search</A></B>(<A HREF="../../javax/mail/search/SearchTerm.html" title="class in javax.mail.search">SearchTerm</A> term, <A HREF="../../javax/mail/Message.html" title="class in javax.mail">Message</A>[] msgs)</CODE><BR> Search the given array of messages for those that match the specified search criterion. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#setFlags(int[], javax.mail.Flags, boolean)">setFlags</A></B>(int[] msgnums, <A HREF="../../javax/mail/Flags.html" title="class in javax.mail">Flags</A> flag, boolean value)</CODE><BR> Set the specified flags on the messages whose message numbers are in the array. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#setFlags(int, int, javax.mail.Flags, boolean)">setFlags</A></B>(int start, int end, <A HREF="../../javax/mail/Flags.html" title="class in javax.mail">Flags</A> flag, boolean value)</CODE><BR> Set the specified flags on the messages numbered from start through end, both start and end inclusive. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#setFlags(javax.mail.Message[], javax.mail.Flags, boolean)">setFlags</A></B>(<A HREF="../../javax/mail/Message.html" title="class in javax.mail">Message</A>[] msgs, <A HREF="../../javax/mail/Flags.html" title="class in javax.mail">Flags</A> flag, boolean value)</CODE><BR> Set the specified flags on the messages specified in the array. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#setSubscribed(boolean)">setSubscribed</A></B>(boolean subscribe)</CODE><BR> Subscribe or unsubscribe this Folder. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/mail/Folder.html#toString()">toString</A></B>()</CODE><BR> override the default toString(), it will return the String from Folder.getFullName() or if that is null, it will use the default toString() behavior.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="store"><!-- --></A><H3>store</H3><PRE>protected <A HREF="../../javax/mail/Store.html" title="class in javax.mail">Store</A> <B>store</B></PRE><DL><DD>The parent store.<P><DL></DL></DL><HR><A NAME="mode"><!-- --></A><H3>mode</H3><PRE>protected int <B>mode</B></PRE><DL><DD>The open mode of this folder. The open mode is <code>Folder.READ_ONLY</code>, <code>Folder.READ_WRITE</code>, or -1 if not known.<P><DL><DT><B>Since:</B></DT> <DD>JavaMail 1.1</DD></DL></DL><HR><A NAME="HOLDS_MESSAGES"><!-- --></A><H3>HOLDS_MESSAGES</H3><PRE>public static final int <B>HOLDS_MESSAGES</B></PRE><DL><DD>This folder can contain messages<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javax.mail.Folder.HOLDS_MESSAGES">Constant Field Values</A></DL></DL><HR><A NAME="HOLDS_FOLDERS"><!-- --></A><H3>HOLDS_FOLDERS</H3><PRE>public static final int <B>HOLDS_FOLDERS</B></PRE><DL><DD>This folder can contain other folders<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javax.mail.Folder.HOLDS_FOLDERS">Constant Field Values</A></DL></DL><HR><A NAME="READ_ONLY"><!-- --></A><H3>READ_ONLY</H3><PRE>public static final int <B>READ_ONLY</B></PRE><DL><DD>The Folder is read only. The state and contents of this folder cannot be modified.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javax.mail.Folder.READ_ONLY">Constant Field Values</A></DL></DL><HR><A NAME="READ_WRITE"><!-- --></A><H3>READ_WRITE</H3><PRE>public static final int <B>READ_WRITE</B></PRE><DL><DD>The state and contents of this folder can be modified.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javax.mail.Folder.READ_WRITE">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -