public class SmtpResponseReader extends Object
The same rules used here would apply to FTP and other Telnet based protocols as well.
| Modifier and Type | Field and Description |
|---|---|
protected BufferedReader |
reader |
| Constructor and Description |
|---|
SmtpResponseReader(InputStream in)
Wrap this input stream.
|
| Modifier and Type | Method and Description |
|---|---|
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?
|
protected BufferedReader reader
public SmtpResponseReader(InputStream in)
public String getResponse() throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionprotected boolean hasMoreLines(String line)
Copyright © 2015. All Rights Reserved.