gnu.inet.nntp

Class 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
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.
String
messageId

Fields inherited from class gnu.inet.nntp.StatusResponse

message, status

Constructor Summary

ArticleResponse(short status, String message)

Method Summary

Methods inherited from class gnu.inet.nntp.StatusResponse

getMessage, getStatus

Field Details

articleNumber

public int articleNumber


in

public 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. 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.


messageId

public String messageId

Constructor Details

ArticleResponse

protected ArticleResponse(short status,
                          String message)


© Copyright 2003 The Free Software Foundation, all rights reserved