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 anNNTPClient
instance, and an integer range of messages, return an array ofArticle
instances.
-
-
-
Method Detail
-
getArticleInfo
public static java.util.List<Article> getArticleInfo(NNTPClient client, long lowArticleNumber, long highArticleNumber) throws java.io.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:
java.io.IOException
- on error
-
-