public class SmtpResponseReader
extends java.lang.Object
The same rules used here would apply to FTP and other Telnet based protocols as well.
| Modifier and Type | Field | Description |
|---|---|---|
protected java.io.BufferedReader |
reader |
| Constructor | Description |
|---|---|
SmtpResponseReader(java.io.InputStream in) |
Wrap this input stream.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes the underlying stream.
|
java.lang.String |
getResponse() |
Read until the server indicates that the response is complete.
|
protected boolean |
hasMoreLines(java.lang.String line) |
Should we expect more input?
|
public SmtpResponseReader(java.io.InputStream in)
in - the stream to wrap.public java.lang.String getResponse()
throws java.io.IOException
java.io.IOException - on error.public void close()
throws java.io.IOException
java.io.IOException - on error.protected boolean hasMoreLines(java.lang.String line)
line - the line to check.