Class 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 an NNTPClient instance, and an integer range of messages, return an array of Article instances.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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:
        java.io.IOException - on error