Package org.apache.tools.mail
Class SmtpResponseReader
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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Closes the underlying stream.Read until the server indicates that the response is complete.protected booleanhasMoreLines(String line) Should we expect more input?
- 
Field Details- 
reader
 
- 
- 
Constructor Details- 
SmtpResponseReaderWrap this input stream.- Parameters:
- in- the stream to wrap.
 
 
- 
- 
Method Details- 
getResponseRead until the server indicates that the response is complete.- Returns:
- Response code (3 digits) + Blank + Text from all response line concatenated (with blanks replacing the \r\n sequences).
- Throws:
- IOException- on error.
 
- 
closeCloses the underlying stream.- Throws:
- IOException- on error.
 
- 
hasMoreLinesShould we expect more input?- Parameters:
- line- the line to check.
- Returns:
- true if there are more lines to check.
 
 
-