|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.mail.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 java.io.BufferedReader |
reader
|
Constructor Summary | |
SmtpResponseReader(java.io.InputStream in)
Wrap this input stream. |
Method Summary | |
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? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.io.BufferedReader reader
Constructor Detail |
public SmtpResponseReader(java.io.InputStream in)
in
- the stream to wrap.Method Detail |
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |