Class TextEscaper


  • public final class TextEscaper
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TextEscaper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void outputDTDText​(java.io.Writer w, char[] ch, int offset, int len)
      Quoting method used when outputting content that will be part of DTD (internal/external subset).
      static void writeEscapedAttrValue​(java.io.Writer w, java.lang.String value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TextEscaper

        private TextEscaper()
    • Method Detail

      • writeEscapedAttrValue

        public static void writeEscapedAttrValue​(java.io.Writer w,
                                                 java.lang.String value)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • outputDTDText

        public static void outputDTDText​(java.io.Writer w,
                                         char[] ch,
                                         int offset,
                                         int len)
                                  throws java.io.IOException
        Quoting method used when outputting content that will be part of DTD (internal/external subset). Additional quoting is needed for percentage char, which signals parameter entities.
        Throws:
        java.io.IOException