Class J.Literal.UnicodeEscape

  • Enclosing class:
    J.Literal

    public static class J.Literal.UnicodeEscape
    extends java.lang.Object
    See jls-3.3.

    Unmatched UTF-16 surrogate pairs (composed of two escape and code point pairs) are unserializable by technologies like Jackson. So we separate and store the code point off and reconstruct the escape sequence when printing later.

    We only escape unicode characters that are part of UTF-16 surrogate pairs. Others are generally treated well by tools like Jackson.

    • Constructor Summary

      Constructors 
      Constructor Description
      UnicodeEscape()  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • UnicodeEscape

        public UnicodeEscape()