Class Format.DefaultEscapeStrategy

  • All Implemented Interfaces:
    org.jdom2.output.EscapeStrategy
    Enclosing class:
    Format

    class Format.DefaultEscapeStrategy
    extends java.lang.Object
    implements org.jdom2.output.EscapeStrategy
    Handle common charsets quickly and easily. Use reflection to query the JDK 1.4 CharsetEncoder class for unknown charsets. If JDK 1.4 isn't around, default to no special encoding.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int bits  
      (package private) java.lang.reflect.Method canEncode  
      (package private) java.lang.Object encoder  
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultEscapeStrategy​(java.lang.String encoding)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean shouldEscape​(char ch)  
      • Methods inherited from class java.lang.Object

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

      • bits

        private int bits
      • encoder

        java.lang.Object encoder
      • canEncode

        java.lang.reflect.Method canEncode
    • Constructor Detail

      • DefaultEscapeStrategy

        public DefaultEscapeStrategy​(java.lang.String encoding)
    • Method Detail

      • shouldEscape

        public boolean shouldEscape​(char ch)
        Specified by:
        shouldEscape in interface org.jdom2.output.EscapeStrategy