sun.net.ftp.FtpClient , sun.net.nntp.NntpClient
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final boolean | |
| protected int | lastReplyCode
code for last reply |
| protected Vector | serverResponse
Array of strings (usually 1 entry) for the last reply from the server. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Vector | |
| public int | |
| public void |
| debug | back to summary |
|---|---|
| pack-priv static final boolean debug | |
| lastReplyCode | back to summary |
|---|---|
| protected int lastReplyCode code for last reply | |
| serverResponse | back to summary |
|---|---|
| protected Vector<String> serverResponse Array of strings (usually 1 entry) for the last reply from the server. | |
| TransferProtocolClient | back to summary |
|---|---|
| public TransferProtocolClient(String host, int port) throws IOException standard constructor to host host, port port. | |
| TransferProtocolClient | back to summary |
|---|---|
| public TransferProtocolClient() creates an uninitialized instance of this class. | |
| getResponseString | back to summary |
|---|---|
| public String getResponseString() converts the server response into a string. | |
| getResponseStrings | back to summary |
|---|---|
| public Vector Returns all server response strings. | |
| readServerResponse | back to summary |
|---|---|
| public int readServerResponse() throws IOException Pulls the response from the server and returns the code as a number. Returns -1 on failure. | |
| sendServer | back to summary |
|---|---|
| public void sendServer(String cmd) Sends command cmd to the server. | |