|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.mailsender.simple.SmtpResponseReader
public class SmtpResponseReader
A wrapper around the raw input from the SMTP server that assembles multi line responses into a single String.
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? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected BufferedReader reader
| Constructor Detail |
|---|
public SmtpResponseReader(InputStream in)
| Method Detail |
|---|
public String getResponse()
throws IOException
IOException
public void close()
throws IOException
IOExceptionprotected boolean hasMoreLines(String line)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||