|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.Socket
com.croftsoft.core.net.news.NntpSocket
public class NntpSocket
Implements NNTP as given by RFC 977.
| Field Summary |
|---|
| Fields inherited from interface com.croftsoft.core.net.news.NntpConstants |
|---|
COMMAND_ARTICLE, COMMAND_AUTHINFO, COMMAND_BODY, COMMAND_GROUP, COMMAND_HEAD, COMMAND_HELP, COMMAND_IHAVE, COMMAND_LAST, COMMAND_LIST, COMMAND_NEWGROUPS, COMMAND_NEWNEWS, COMMAND_NEXT, COMMAND_POST, COMMAND_QUIT, COMMAND_SLAVE, COMMAND_STAT, CR_LF, NNTP_PORT |
| Constructor Summary | |
|---|---|
NntpSocket(String nntpServerHost,
Log log)
Be sure to call command_QUIT() when done. |
|
| Method Summary | |
|---|---|
String |
command_QUIT()
Sends COMMAND_QUIT and then closes the NNTPSocket. |
String |
command(String command)
Sends command + CR_LF to the server. |
BufferedReader |
getBufferedReader()
|
Log |
getLog()
|
boolean |
getPostingAllowed()
Returns true if posting to this server is allowed. |
String |
getResponseCode()
Returns the response code for the last command. |
Vector |
load_response_text()
Loads the response_text from the NNTPSocket InputStream. |
Vector |
response_text()
Returns the response text, a Vector of String, for the last command. |
void |
setLog(Log log)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NntpSocket(String nntpServerHost,
Log log)
throws IOException
IOException| Method Detail |
|---|
public BufferedReader getBufferedReader()
public String getResponseCode()
public Vector response_text()
public boolean getPostingAllowed()
public Vector load_response_text()
throws IOException
IOException
public String command(String command)
throws IOException
IOException
public String command_QUIT()
throws IOException
IOExceptionpublic Log getLog()
public void setLog(Log log)
|
CroftSoft Javadoc | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||