camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [4/6] camel git commit: CAMEL-8001: Add javadoc comments about the expectation that the argument is ISO-8859-1 encoded
Date Fri, 05 Dec 2014 03:26:58 GMT
CAMEL-8001: Add javadoc comments about the expectation that the argument is ISO-8859-1 encoded


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/8a033a94
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/8a033a94
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/8a033a94

Branch: refs/heads/camel-2.13.x
Commit: 8a033a946c1992de92593bfcc29765bbc9934498
Parents: e4d47e7
Author: Daniel Pocock <daniel@pocock.pro>
Authored: Mon Nov 24 19:11:31 2014 +0100
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Fri Dec 5 11:26:20 2014 +0800

----------------------------------------------------------------------
 .../java/org/apache/camel/component/smpp/SmppUtils.java     | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/8a033a94/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppUtils.java
----------------------------------------------------------------------
diff --git a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppUtils.java
b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppUtils.java
index 0158a80..9a427f6 100644
--- a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppUtils.java
+++ b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppUtils.java
@@ -125,6 +125,13 @@ public final class SmppUtils {
             : Alphabet.valueOf((byte)(dataCoding & Alphabet.MASK_ALPHABET));
     }
 
+    /**
+     * Decides if the characters in the argument are GSM 3.38 encodeable.
+     * @param aMessage must be a set of characters encoded in ISO-8859-1
+     *                 or a compatible character set.  In particular,
+     *                 UTF-8 encoded text should not be passed to this method.
+     * @return true if the characters can be represented in GSM 3.38
+     */
     public static boolean isGsm0338Encodeable(byte[] aMessage) {
     outer:
         for (int i = 0; i < aMessage.length; i++) {
@@ -265,4 +272,4 @@ public final class SmppUtils {
         }
         return dest;
     }
-}
\ No newline at end of file
+}


Mime
View raw message