Class NNTPUtils
- java.lang.Object
-
- org.apache.commons.net.examples.nntp.NNTPUtils
-
public class NNTPUtils extends java.lang.Object
Some convenience methods for NNTP example classes.
-
-
Constructor Summary
Constructors Constructor Description NNTPUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<Article>getArticleInfo(NNTPClient client, long lowArticleNumber, long highArticleNumber)Given anNNTPClientinstance, and an integer range of messages, return an array ofArticleinstances.
-
-
-
Constructor Detail
-
NNTPUtils
public NNTPUtils()
-
-
Method Detail
-
getArticleInfo
public static java.util.List<Article> getArticleInfo(NNTPClient client, long lowArticleNumber, long highArticleNumber) throws java.io.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:
java.io.IOException- on error
-
-