peterreilly 2005/01/20 09:03:11
Modified: src/main/org/apache/tools/mail Tag: ANT_16_BRANCH
SmtpResponseReader.java
Log:
sync
Revision Changes Path
No revision
No revision
1.11.2.5 +6 -1 ant/src/main/org/apache/tools/mail/SmtpResponseReader.java
Index: SmtpResponseReader.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/mail/SmtpResponseReader.java,v
retrieving revision 1.11.2.4
retrieving revision 1.11.2.5
diff -u -r1.11.2.4 -r1.11.2.5
--- SmtpResponseReader.java 9 Mar 2004 17:01:59 -0000 1.11.2.4
+++ SmtpResponseReader.java 20 Jan 2005 17:03:11 -0000 1.11.2.5
@@ -1,5 +1,5 @@
/*
- * Copyright 2000-2002,2004 The Apache Software Foundation
+ * Copyright 2000-2002,2004-2005 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -37,6 +37,7 @@
/**
* Wrap this input stream.
+ * @param in the stream to wrap.
*/
public SmtpResponseReader(InputStream in) {
reader = new BufferedReader(new InputStreamReader(in));
@@ -48,6 +49,7 @@
* @return Responsecode (3 digits) + Blank + Text from all
* response line concatenated (with blanks replacing the \r\n
* sequences).
+ * @throws IOException on error.
*/
public String getResponse() throws IOException {
result.setLength(0);
@@ -69,6 +71,7 @@
/**
* Closes the underlying stream.
+ * @throws IOException on error.
*/
public void close() throws IOException {
reader.close();
@@ -76,6 +79,8 @@
/**
* Should we expect more input?
+ * @param line the line to check.
+ * @return true if there are more lines to check.
*/
protected boolean hasMoreLines(String line) {
return line.length() > 3 && line.charAt(3) == '-';
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
|