Class NNTPUtils

java.lang.Object
org.apache.commons.net.examples.nntp.NNTPUtils

public class NNTPUtils extends Object
Some convenience methods for NNTP example classes.
  • Constructor Details

  • Method Details

    • getArticleInfo

      public static List<Article> getArticleInfo(NNTPClient client, long lowArticleNumber, long highArticleNumber) throws IOException
      Given an NNTPClient instance, and an integer range of messages, return an array of Article instances.
      Parameters:
      client - the client to use
      lowArticleNumber - low number
      highArticleNumber - high number
      Returns:
      Article[] An array of Article
      Throws:
      IOException - on error