commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1085983 - /commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/IMAPReply.java
Date Sun, 27 Mar 2011 16:42:59 GMT
Author: sebb
Date: Sun Mar 27 16:42:58 2011
New Revision: 1085983

URL: http://svn.apache.org/viewvc?rev=1085983&view=rev
Log:
Add boolean check for continuation line

Modified:
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/IMAPReply.java

Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/IMAPReply.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/IMAPReply.java?rev=1085983&r1=1085982&r2=1085983&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/IMAPReply.java (original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/IMAPReply.java Sun
Mar 27 16:42:58 2011
@@ -138,6 +138,15 @@ public final class IMAPReply
     public static boolean isSuccess(int replyCode) {
         return replyCode == OK;
     }
+    /**
+     * Checks if the reply line is a continuation, i.e. starts with "+"
+     * @param replyCode the code to be checked
+     * @return {@code true} if the response was a continuation
+     */
+    public static boolean isContinuation(int replyCode) {
+        return replyCode == CONT;
+    }
+
 }
 
 /* kate: indent-width 4; replace-tabs on; */



Mime
View raw message