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 anNNTPClientinstance, and an integer range of messages, return an array ofArticleinstances.
-
Constructor Details
-
NNTPUtils
public NNTPUtils()
-
-
Method Details
-
getArticleInfo
public static List<Article> getArticleInfo(NNTPClient client, long lowArticleNumber, long highArticleNumber) throws IOException Given anNNTPClientinstance, and an integer range of messages, return an array ofArticleinstances.- Parameters:
client- the client to uselowArticleNumber- low numberhighArticleNumber- high number- Returns:
- Article[] An array of Article
- Throws:
IOException- on error
-