You must not issue any commands to the POP3 server (i.e., call any other methods) until you finish reading the message from the returned Reader instance. The POP3 protocol uses the same stream for issuing commands as it does for returning results. Therefore the returned Reader actually reads directly from the POP3 connection. After the end of message has been reached, new commands can be executed and their replies read. If you do not follow these requirements, your program will not work properly.
@param messageId The number of the message to fetch. @param numLines The top number of lines to fetch. This must be >= 0. @return A DotTerminatedMessageReader instancefrom which the specified top number of lines of the message can be read. Returns null if the retrieval attempt fails (e.g., if the specified message number does not exist). @exception IOException If a network I/O error occurs in the process ofsending the top command.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|