パッケージ org.mixer2.util

クラス XMLStringUtil


  • public class XMLStringUtil
    extends java.lang.Object
    • メソッドの概要

      すべてのメソッド staticメソッド concreteメソッド 
      修飾子とタイプ メソッド 説明
      static java.lang.String getXMLValidString​(java.lang.String input)
      Replace XML invalid chars with one white space.
      static java.lang.String getXMLValidString​(java.lang.String input, boolean replace, char replacement)
      Remove or replace XML invalid chars from input.
      static boolean isXMLValid​(char c)
      Checker for XML valid character.
      • クラスから継承されたメソッド java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • メソッドの詳細

      • getXMLValidString

        public static java.lang.String getXMLValidString​(java.lang.String input)
        Replace XML invalid chars with one white space.
        パラメータ:
        input -
        戻り値:
      • getXMLValidString

        public static java.lang.String getXMLValidString​(java.lang.String input,
                                                         boolean replace,
                                                         char replacement)
        Remove or replace XML invalid chars from input.
        パラメータ:
        input -
        replace - Whether or not to replace invalid characters by replacement
        replacement - The character to replace any invalid character found
        戻り値:
        The String that is cleaned from the invalid in XML characters.
        関連項目:
        isXMLValid(char)
      • isXMLValid

        public static boolean isXMLValid​(char c)

        Checker for XML valid character.

        The Valid XML char is one of:
        #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]

        パラメータ:
        c - The char to test.
        戻り値:
        true if c is one of:
        #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD].
        関連項目:
        http://www.w3.org/TR/REC-xml/#charsets