examples.nntp

Class NNTPUtils

public class NNTPUtils extends Object

Some convenience methods for NNTP example classes.

Author: Rory Winston

Method Summary
static Article[]getArticleInfo(NNTPClient client, int lowArticleNumber, int highArticleNumber)
Given an NNTPClient instance, and an integer range of messages, return an array of Article instances.
static StringreaderToString(Reader reader)
Convert a Reader instance to a String

Method Detail

getArticleInfo

public static Article[] getArticleInfo(NNTPClient client, int lowArticleNumber, int highArticleNumber)
Given an NNTPClient instance, and an integer range of messages, return an array of Article instances.

Parameters: client lowArticleNumber highArticleNumber

Returns: Article[] An array of Article

Throws: IOException

readerToString

public static String readerToString(Reader reader)
Convert a Reader instance to a String

Parameters: reader The Reader instance

Returns: String