examples.nntp
Class NNTPUtils
java.lang.Object
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
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-2008 The Apache Software Foundation. All Rights Reserved.