gnu.inet.nntp
Class ArticleResponse

java.lang.Object
  extended by gnu.inet.nntp.StatusResponse
      extended by gnu.inet.nntp.ArticleResponse

public class ArticleResponse
extends StatusResponse

An NNTP article status response. This represents the status response associated with NNTP status codes 220-223, including an article number and a message-id.

Author:
Chris Burdess

Field Summary
 int articleNumber
           
 java.io.InputStream in
          If the status code for this response is one of: ARTICLE_FOLLOWS HEAD_FOLLOWS BODY_FOLLOWS then this stream can be used to retrieve the byte content of the article retrieved.
 java.lang.String messageId
           
 
Fields inherited from class gnu.inet.nntp.StatusResponse
message, status
 
Constructor Summary
protected ArticleResponse(short status, java.lang.String message)
           
 
Method Summary
 
Methods inherited from class gnu.inet.nntp.StatusResponse
getMessage, getStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

articleNumber

public int articleNumber

messageId

public java.lang.String messageId

in

public java.io.InputStream in
If the status code for this response is one of: then this stream can be used to retrieve the byte content of the article retrieved. Otherwise, it will be null. If it is non-null, the stream must be read in its entirety before further methods can be invoked on the NNTPConnection.

Constructor Detail

ArticleResponse

protected ArticleResponse(short status,
                          java.lang.String message)


© Copyright 2003 The Free Software Foundation, all rights reserved