com.belerweb.social.mail.api
Class POP3

java.lang.Object
  extended by com.belerweb.social.mail.api.POP3

public class POP3
extends Object

POP3 邮件工具


Constructor Summary
POP3(String username, String password, String host)
           
POP3(String username, String password, String host, int port, boolean ssl)
           
 
Method Summary
 void download(File dir)
          下载所有电子邮件到指定目录
 void download(String dir)
          下载所有电子邮件到指定目录
 boolean test()
          检查用户信息是否正确
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POP3

public POP3(String username,
            String password,
            String host)

POP3

public POP3(String username,
            String password,
            String host,
            int port,
            boolean ssl)
Method Detail

test

public boolean test()
             throws SocialException
检查用户信息是否正确

Throws:
SocialException

download

public void download(File dir)
              throws SocialException
下载所有电子邮件到指定目录

Throws:
SocialException

download

public void download(String dir)
下载所有电子邮件到指定目录



Copyright © 2014. All Rights Reserved.