org.apache.tools.mail
public class SmtpResponseReader extends Object
The same rules used here would apply to FTP and other Telnet based protocols as well.
| Field Summary | |
|---|---|
| protected BufferedReader | reader |
| Constructor Summary | |
|---|---|
| SmtpResponseReader(InputStream in)
Wrap this input stream. | |
| Method Summary | |
|---|---|
| void | close()
Closes the underlying stream. |
| String | getResponse()
Read until the server indicates that the response is complete.
|
| protected boolean | hasMoreLines(String line)
Should we expect more input? |
Parameters: in the stream to wrap.
Throws: IOException on error.
Returns: Responsecode (3 digits) + Blank + Text from all response line concatenated (with blanks replacing the \r\n sequences).
Throws: IOException on error.
Parameters: line the line to check.
Returns: true if there are more lines to check.