Class Utils

  • public class Utils
    extends Object
    Igor Farinic, Radovan Semancik
    • Constructor Detail

      • Utils

        public Utils()
    • Method Detail

      • getPropertyName

        public static String getPropertyName​(String name)
      • cleanupUtf

        public static String cleanupUtf​(String bad)
        Removing non-printable UTF characters from the string.

        This is not really used now. It was done as a kind of prototype for filters. But may come handy and it in fact tests that the pattern is doing what expected, so it may be useful.

        bad - string with bad chars
        string without bad chars
      • isValidXmlCodepoint

        public static boolean isValidXmlCodepoint​(int cp)
        According to XML specification, section 2.2: