You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2014/12/02 04:40:22 UTC

[05/11] camel git commit: CAMEL-8001: Add javadoc comments about the expectation that the argument is ISO-8859-1 encoded

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/6348eacc
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/6348eacc
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/6348eacc

Branch: refs/heads/master
Commit: 6348eacc7de81a3e801413583c5384fec50e8cfa
Parents: 8429c59
Author: Daniel Pocock <da...@pocock.pro>
Authored: Mon Nov 24 19:11:31 2014 +0100
Committer: Willem Jiang <wi...@gmail.com>
Committed: Tue Dec 2 10:53:35 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/6348eacc/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
+}