?? jfmpop3.html
字號:
<A NAME="JfmPOP3(java.lang.String, int, int, java.lang.String, java.lang.String)"><!-- --></A><H3>JfmPOP3</H3><PRE>public <B>JfmPOP3</B>(java.lang.String hostname, int port, int auth_type, java.lang.String username, java.lang.String password) throws <A HREF="../../../org/jfreemail/pop3/POP3Exception.html" title="class in org.jfreemail.pop3">POP3Exception</A>, <A HREF="../../../org/jfreemail/core/AuthException.html" title="class in org.jfreemail.core">AuthException</A></PRE><DL><DD>Constructor for pop3 object. Need immediately authentication. So we are sure to have connection with POP3 server when using object constructed from this class.<P><DT><B>Parameters:</B><DD><CODE>hostname</CODE> - Hostname of POP3 server.<DD><CODE>port</CODE> - POP3 port. Pass 0 for default POP3 port.<DD><CODE>auth_type</CODE> - Authentication type. See JfmConsts.<DD><CODE>username</CODE> - Username for authentication.<DD><CODE>password</CODE> - Password for authentication.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jfreemail/pop3/POP3Exception.html" title="class in org.jfreemail.pop3">POP3Exception</A></CODE> - Thrown on protocol error.<DD><CODE><A HREF="../../../org/jfreemail/core/AuthException.html" title="class in org.jfreemail.core">AuthException</A></CODE> - Thrown on authentication error.</DL><HR><A NAME="JfmPOP3(java.net.InetAddress, int, int, java.lang.String, java.lang.String)"><!-- --></A><H3>JfmPOP3</H3><PRE>public <B>JfmPOP3</B>(java.net.InetAddress addr, int port, int auth_type, java.lang.String username, java.lang.String password) throws <A HREF="../../../org/jfreemail/pop3/POP3Exception.html" title="class in org.jfreemail.pop3">POP3Exception</A>, <A HREF="../../../org/jfreemail/core/AuthException.html" title="class in org.jfreemail.core">AuthException</A></PRE><DL><DD>Constructor for pop3 object. Authentication immediately, so we can use object when successfully creted.<P><DT><B>Parameters:</B><DD><CODE>addr</CODE> - IP address of POP3 server<DD><CODE>port</CODE> - POP3 port. Pass 0 for default POP3 port.<DD><CODE>auth_type</CODE> - Authetication type. See JfmConsts.<DD><CODE>username</CODE> - Username for authentication.<DD><CODE>password</CODE> - Password for authentication.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jfreemail/pop3/POP3Exception.html" title="class in org.jfreemail.pop3">POP3Exception</A></CODE> - Thrown on POP3 protocol error.<DD><CODE><A HREF="../../../org/jfreemail/core/AuthException.html" title="class in org.jfreemail.core">AuthException</A></CODE> - Thrown on authentication error.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="deleteEmail(org.jfreemail.core.JfmEmailHeader)"><!-- --></A><H3>deleteEmail</H3><PRE>public void <B>deleteEmail</B>(<A HREF="../../../org/jfreemail/core/JfmEmailHeader.html" title="class in org.jfreemail.core">JfmEmailHeader</A> header) throws <A HREF="../../../org/jfreemail/pop3/POP3Exception.html" title="class in org.jfreemail.pop3">POP3Exception</A>, <A HREF="../../../org/jfreemail/core/CoreException.html" title="class in org.jfreemail.core">CoreException</A></PRE><DL><DD>Method for deleting E-mail. You need to pass E-mail's header.<br> <strong>Warning:</strong> Do not use old E-mail headers from older POP3 session. Use E-mail haders readed in this session from this object instance. Do not attempt to change message index in E-mail header.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>header</CODE> - Header of E-mail which should be deleted.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jfreemail/pop3/POP3Exception.html" title="class in org.jfreemail.pop3">POP3Exception</A></CODE> - Thrown on POP3 protocol error.<DD><CODE><A HREF="../../../org/jfreemail/core/CoreException.html" title="class in org.jfreemail.core">CoreException</A></CODE> - Thrown on comparison error. Unique message identifier from passed header and header from POP3 server are compared. If unique message indetifier doesn't match, this exception is thrown. This is method to prevent deleting wrong E-mail, with wrong header.</DL></DD></DL><HR><A NAME="getMailboxHeaders()"><!-- --></A><H3>getMailboxHeaders</H3><PRE>public <A HREF="../../../org/jfreemail/core/JfmEmailHeader.html" title="class in org.jfreemail.core">JfmEmailHeader</A>[] <B>getMailboxHeaders</B>() throws <A HREF="../../../org/jfreemail/pop3/POP3Exception.html" title="class in org.jfreemail.pop3">POP3Exception</A>, <A HREF="../../../org/jfreemail/core/CoreException.html" title="class in org.jfreemail.core">CoreException</A></PRE><DL><DD>Method for retrieving all E-mail headers from POP3 server. This method reads all E-mail headers stored in POP3 server. You must identify headers for E-mails you have read before. This could be done with comparing unique E-mail idnetifier.<P><DD><DL><DT><B>Returns:</B><DD>E-mail header list.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jfreemail/pop3/POP3Exception.html" title="class in org.jfreemail.pop3">POP3Exception</A></CODE> - Thrown on communication error.<DD><CODE><A HREF="../../../org/jfreemail/core/CoreException.html" title="class in org.jfreemail.core">CoreException</A></CODE> - Thrown on header parsing error.</DL></DD></DL><HR><A NAME="getEmail(org.jfreemail.core.JfmEmailHeader, boolean)"><!-- --></A><H3>getEmail</H3><PRE>public <A HREF="../../../org/jfreemail/core/JfmEmail.html" title="class in org.jfreemail.core">JfmEmail</A> <B>getEmail</B>(<A HREF="../../../org/jfreemail/core/JfmEmailHeader.html" title="class in org.jfreemail.core">JfmEmailHeader</A> header, boolean delete) throws <A HREF="../../../org/jfreemail/pop3/POP3Exception.html" title="class in org.jfreemail.pop3">POP3Exception</A>, <A HREF="../../../org/jfreemail/core/CoreException.html" title="class in org.jfreemail.core">CoreException</A></PRE><DL><DD>Method for reading E-mail. Use E-mail headers downloaded in this session, from this object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>header</CODE> - E-mail header.<DD><CODE>delete</CODE> - Delete E-mail on POP3 server after reading.<DT><B>Returns:</B><DD>E-mail Java bean.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jfreemail/pop3/POP3Exception.html" title="class in org.jfreemail.pop3">POP3Exception</A></CODE> - Thrown on communication error.<DD><CODE><A HREF="../../../org/jfreemail/core/CoreException.html" title="class in org.jfreemail.core">CoreException</A></CODE> - Thrown on E-mail parsing error.</DL></DD></DL><HR><A NAME="getMailboxStats()"><!-- --></A><H3>getMailboxStats</H3><PRE>public <A HREF="../../../org/jfreemail/pop3/JfmPOP3Stat.html" title="class in org.jfreemail.pop3">JfmPOP3Stat</A> <B>getMailboxStats</B>() throws <A HREF="../../../org/jfreemail/pop3/POP3Exception.html" title="class in org.jfreemail.pop3">POP3Exception</A></PRE><DL><DD>Method for retrieving Mailbox statistics.<P><DD><DL><DT><B>Returns:</B><DD>Java bean with Mailbox statistics.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jfreemail/pop3/POP3Exception.html" title="class in org.jfreemail.pop3">POP3Exception</A></CODE> - Thrown on communication error.</DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public void <B>close</B>() throws <A HREF="../../../org/jfreemail/pop3/POP3Exception.html" title="class in org.jfreemail.pop3">POP3Exception</A></PRE><DL><DD>Closing connection with POP3 server.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jfreemail/pop3/POP3Exception.html" title="class in org.jfreemail.pop3">POP3Exception</A></CODE> - Thrown on communication error.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/JfmPOP3.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../org/jfreemail/pop3/JfmPOP3Stat.html" title="class in org.jfreemail.pop3"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="JfmPOP3.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -