messagingexception.html
来自「SUN的JAVA MAIL API」· HTML 代码 · 共 1,254 行 · 第 1/5 页
HTML
1,254 行
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract boolean</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#hasNewMessages()">hasNewMessages</A></B>()</CODE>
<BR>
Returns true if this Folder has new messages since the last time
it was opened.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract <A HREF="../../../javax/mail/Folder.html">Folder</A></CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#getFolder(java.lang.String)">getFolder</A></B>(java.lang.String name)</CODE>
<BR>
Return the Folder object corresponding to the given name.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract boolean</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#delete(boolean)">delete</A></B>(boolean recurse)</CODE>
<BR>
Delete this Folder.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract boolean</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#renameTo(javax.mail.Folder)">renameTo</A></B>(<A HREF="../../../javax/mail/Folder.html">Folder</A> f)</CODE>
<BR>
Rename this Folder.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract void</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#open(int)">open</A></B>(int mode)</CODE>
<BR>
Open this Folder.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract void</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#close(boolean)">close</A></B>(boolean expunge)</CODE>
<BR>
Close this Folder.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract int</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#getMessageCount()">getMessageCount</A></B>()</CODE>
<BR>
Get total number of messages in this Folder.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#getNewMessageCount()">getNewMessageCount</A></B>()</CODE>
<BR>
Get the number of new messages in this Folder.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#getUnreadMessageCount()">getUnreadMessageCount</A></B>()</CODE>
<BR>
Get the total number of unread messages in this Folder.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract <A HREF="../../../javax/mail/Message.html">Message</A></CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#getMessage(int)">getMessage</A></B>(int msgnum)</CODE>
<BR>
Get the Message object corresponding to the given message
number.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/mail/Message.html">Message</A>[]</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#getMessages(int, int)">getMessages</A></B>(int start,
int end)</CODE>
<BR>
Get the Message objects for message numbers ranging from start
through end, both start and end inclusive.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/mail/Message.html">Message</A>[]</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#getMessages(int[])">getMessages</A></B>(int[] msgnums)</CODE>
<BR>
Get the Message objects for message numbers specified in
the array.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/mail/Message.html">Message</A>[]</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#getMessages()">getMessages</A></B>()</CODE>
<BR>
Get all Message objects from this Folder.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract void</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#appendMessages(javax.mail.Message[])">appendMessages</A></B>(<A HREF="../../../javax/mail/Message.html">Message</A>[] msgs)</CODE>
<BR>
Append given Messages to this folder.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#fetch(javax.mail.Message[], javax.mail.FetchProfile)">fetch</A></B>(<A HREF="../../../javax/mail/Message.html">Message</A>[] msgs,
<A HREF="../../../javax/mail/FetchProfile.html">FetchProfile</A> fp)</CODE>
<BR>
Prefetch the items specified in the FetchProfile for the
given Messages.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#setFlags(javax.mail.Message[], javax.mail.Flags, boolean)">setFlags</A></B>(<A HREF="../../../javax/mail/Message.html">Message</A>[] msgs,
<A HREF="../../../javax/mail/Flags.html">Flags</A> flag,
boolean value)</CODE>
<BR>
Set the specified flags on the messages specified in the array.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>Folder.<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">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" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#setFlags(int[], javax.mail.Flags, boolean)">setFlags</A></B>(int[] msgnums,
<A HREF="../../../javax/mail/Flags.html">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" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#copyMessages(javax.mail.Message[], javax.mail.Folder)">copyMessages</A></B>(<A HREF="../../../javax/mail/Message.html">Message</A>[] msgs,
<A HREF="../../../javax/mail/Folder.html">Folder</A> folder)</CODE>
<BR>
Copy the specified Messages from this Folder into another
Folder.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract <A HREF="../../../javax/mail/Message.html">Message</A>[]</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#expunge()">expunge</A></B>()</CODE>
<BR>
Expunge (permanently remove) messages marked DELETED.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/mail/Message.html">Message</A>[]</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#search(javax.mail.search.SearchTerm)">search</A></B>(<A HREF="../../../javax/mail/search/SearchTerm.html">SearchTerm</A> term)</CODE>
<BR>
Search this Folder for messages matching the specified
search criterion.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/mail/Message.html">Message</A>[]</CODE></FONT></TD>
<TD><CODE><B>Folder.<A HREF="../../../javax/mail/Folder.html#search(javax.mail.search.SearchTerm, javax.mail.Message[])">search</A></B>(<A HREF="../../../javax/mail/search/SearchTerm.html">SearchTerm</A> term,
<A HREF="../../../javax/mail/Message.html">Message</A>[] msgs)</CODE>
<BR>
Search the given array of messages for those that match the
specified search criterion.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/mail/BodyPart.html">BodyPart</A></CODE></FONT></TD>
<TD><CODE><B>MultipartDataSource.<A HREF="../../../javax/mail/MultipartDataSource.html#getBodyPart(int)">getBodyPart</A></B>(int index)</CODE>
<BR>
Get the specified Part.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>Service.<A HREF="../../../javax/mail/Service.html#connect()">connect</A></B>()</CODE>
<BR>
A generic connect method that takes no parameters.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>Service.<A HREF="../../../javax/mail/Service.html#connect(java.lang.String, java.lang.String, java.lang.String)">connect</A></B>(java.lang.String host,
java.lang.String user,
java.lang.String password)</CODE>
<BR>
Connect to the specified address.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>Service.<A HREF="../../../javax/mail/Service.html#connect(java.lang.String, int, java.lang.String, java.lang.String)">connect</A></B>(java.lang.String host,
int port,
java.lang.String user,
java.lang.String password)</CODE>
<BR>
Similar to connect(host, user, password) except a specific port
can be specified.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected boolean</CODE></FONT></TD>
<TD><CODE><B>Service.<A HREF="../../../javax/mail/Service.html#protocolConnect(java.lang.String, int, java.lang.String, java.lang.String)">protocolConnect</A></B>(java.lang.String host,
int port,
java.lang.String user,
java.lang.String password)</CODE>
<BR>
The service implementation should override this method to
perform the actual protocol-specific connection attempt.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>Service.<A HREF="../../../javax/mail/Service.html#close()">close</A></B>()</CODE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?