Class POP3Mail


  • public final class POP3Mail
    extends java.lang.Object
    This is an example program demonstrating how to use the POP3[S]Client class. This program connects to a POP3[S] server and retrieves the message headers of all the messages, printing the From: and Subject: header entries for each message.

    See main() method for usage details

    • Constructor Summary

      Constructors 
      Constructor Description
      POP3Mail()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      static void printMessageInfo​(java.io.BufferedReader reader, int id)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • POP3Mail

        public POP3Mail()
    • Method Detail

      • printMessageInfo

        public static void printMessageInfo​(java.io.BufferedReader reader,
                                            int id)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • main

        public static void main​(java.lang.String[] args)