@@ -0,0 +1,710 @@
+package com.adenki.smpp.util;%0A%0A/**%0A * Some string utility methods.%0A * @version $Id:$%0A */%0Apublic final class StringUtil %7B%0A%0A    private StringUtil() %7B%0A    %7D%0A%0A    /**%0A     * Return a Java String with any non-ASCII characters escaped using %22%5Cu%22%0A     * notation.%0A     * @param s The string to escape.%0A     * @return A new String with non-ASCII characters escaped.%0A     */%0A    public static final String escapeJava(String s) %7B%0A        StringBuilder b = new StringBuilder(s.length());%0A        for (char c : s.toCharArray()) %7B%0A            if (Character.isLetterOrDigit(c)) %7B%0A                b.append(c);%0A            %7D else %7B%0A                b.append(String.format(%22%5C%5Cu%2504x%22, (int) c));%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

Add a String processing utility class