nan.nntp
Interface NNTPResponse


public interface NNTPResponse

An interface for examining NNTP responses.

Version:
1.1, 12/24/03
Author:
John David Ratliff

Method Summary
 int getLineCount()
          Gets the number of lines in the text component.
 int getStatusCode()
          Gets the status code of the NNTP response.
 java.lang.String getStatusMessage()
          Gets the status message.
 java.lang.String getText()
          Gets the text of this response.
 boolean hasText()
          Asks if this response has a text component.
 

Method Detail

getStatusCode

public int getStatusCode()
Gets the status code of the NNTP response.

Returns:
The status code.

getStatusMessage

public java.lang.String getStatusMessage()
Gets the status message.

Returns:
The status message.

hasText

public boolean hasText()
Asks if this response has a text component.

Returns:
true if this response has text; false otherwise.

getText

public java.lang.String getText()
Gets the text of this response.

Returns:
The text.

getLineCount

public int getLineCount()
Gets the number of lines in the text component.

Returns:
The line count.