Secure iNet Factory

com.jscape.inet.nntp
Class NntpArticleBody

java.lang.Object
  extended by 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
NntpArticleBody(java.io.BufferedReader reader)
          Creates new NntpArticleBody instance from BufferedReader.
NntpArticleBody(java.lang.String body)
          Creates new NntpArticleBody instance.
 
Method Summary
 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

Secure iNet Factory

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