Class NNTPUtils
java.lang.Object
org.apache.commons.net.examples.nntp.NNTPUtils
Some convenience methods for NNTP example classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArticleInfo
(NNTPClient client, long lowArticleNumber, long highArticleNumber) Given anNNTPClient
instance, and an integer range of messages, return an array ofArticle
instances.
-
Constructor Details
-
NNTPUtils
public NNTPUtils()
-
-
Method Details
-
getArticleInfo
public static List<Article> getArticleInfo(NNTPClient client, long lowArticleNumber, long highArticleNumber) throws IOException Given anNNTPClient
instance, and an integer range of messages, return an array ofArticle
instances.- Parameters:
client
- the client to uselowArticleNumber
- low numberhighArticleNumber
- high number- Returns:
- Article[] An array of Article
- Throws:
IOException
- on error
-