examples.nntp
Class NNTPUtils

java.lang.Object
  extended by examples.nntp.NNTPUtils

public class NNTPUtils
extends Object

Some convenience methods for NNTP example classes.

Author:
Rory Winston

Constructor Summary
NNTPUtils()
           
 
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 String readerToString(Reader reader)
          Convert a Reader instance to a String
 
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 Article[] getArticleInfo(NNTPClient client,
                                       int lowArticleNumber,
                                       int highArticleNumber)
                                throws IOException
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


Copyright © 1997-2010 The Apache Software Foundation. All Rights Reserved.