examples.nntp
Class NNTPUtils
java.lang.Object
   examples.nntp.NNTPUtils
examples.nntp.NNTPUtils
- public class NNTPUtils 
- extends Object
Some convenience methods for NNTP example classes.
- Author:
- Rory Winston 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
NNTPUtils
public NNTPUtils()
getArticleInfo
public static Article[] getArticleInfo(NNTPClient client,
                                       int lowArticleNumber,
                                       int highArticleNumber)
                                throws IOException
- Given an NNTPClientinstance, and an integer range of messages, return 
 an array ofArticleinstances.
 
- 
- Parameters:
- client-
- lowArticleNumber-
- highArticleNumber-
- Returns:
- Article[] An array of Article
- Throws:
- IOException
 
readerToString
public static String readerToString(Reader reader)
- Convert a Readerinstance to a String
 
- 
- Parameters:
- reader- The Reader instance
- Returns:
- String
 
Copyright © 1997-2008 The Apache Software Foundation. All Rights Reserved.