Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`NNTPUtils()`

Method Summary
`static 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.
`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 List<Article> getArticleInfo(NNTPClient client,
                                               long lowArticleNumber,
                                               long 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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