com.jscape.inet.nntp

## Class NntpArticleBody

- java.lang.Object
- - com.jscape.inet.nntp.NntpArticleBody

- All Implemented Interfaces:
    java.io.Serializable

      public class NntpArticleBody
      extends java.lang.Object
      implements java.io.Serializable

  Provides methods for constructing and reconstructing Nntp atricle body.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NntpArticleBody(java.io.BufferedReader reader)` Creates new `NntpArticleBody` instance from `BufferedReader`.
    `NntpArticleBody(java.lang.String body)` Creates new NntpArticleBody instance.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getBody()` Gets contents of this `NntpArticleBody`.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NntpArticleBody

          public NntpArticleBody(java.lang.String body)

      Creates new NntpArticleBody instance.
      Parameters:
        `body` - the article body

    - #### NntpArticleBody

          public NntpArticleBody(java.io.BufferedReader reader)
                          throws NntpException

      Creates new `NntpArticleBody` instance from `BufferedReader`.
      Parameters:
        `reader` - the `BufferedReader` containing body of article
      Throws:
        `NntpException` - thrown if I/O related error occurs
      See Also:
        `NntpException`

  - ### Method Detail

    - #### getBody

          public java.lang.String getBody()

      Gets contents of this `NntpArticleBody`.
      Returns:
        body

Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved