The same rules used here would apply to FTP and other Telnet based protocols as well.
| Modifier and Type | Field and Description |
|---|---|
| protected BufferedReader |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public void | |
| public String | Returns: Response code (3 digits) + Blank + Text from all response line concatenated (with blanks replacing the \r\n sequences).Read until the server indicates that the response is complete. |
| protected boolean | Returns: true if there are more lines to check.the line to check. line)Should we expect more input? |
| reader | back to summary |
|---|---|
| protected BufferedReader reader | |
| SmtpResponseReader | back to summary |
|---|---|
| public SmtpResponseReader(InputStream in) Wrap this input stream.
| |
| appendTo | back to summary |
|---|---|
| private static void appendTo(StringBuilder target, String line) Append the text from this line of the response. | |
| close | back to summary |
|---|---|
| public void close() throws IOException Closes the underlying stream.
| |
| getResponse | back to summary |
|---|---|
| public String getResponse() throws IOException Read until the server indicates that the response is complete.
| |
| hasMoreLines | back to summary |
|---|---|
| protected boolean hasMoreLines(String line) Should we expect more input?
| |