Class PositionEncodingKind


  • public final class PositionEncodingKind
    extends java.lang.Object
    A set of predefined position encoding kinds indicating how positions are encoded, specifically what column offsets mean.

    Since 3.17.0

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String UTF16
      Character offsets count UTF-16 code units.
      static java.lang.String UTF32
      Character offsets count UTF-32 code units.
      static java.lang.String UTF8
      Character offsets count UTF-8 code units.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • UTF8

        public static final java.lang.String UTF8
        Character offsets count UTF-8 code units.
        See Also:
        Constant Field Values
      • UTF16

        public static final java.lang.String UTF16
        Character offsets count UTF-16 code units.

        This is the default and must always be supported by servers.

        See Also:
        Constant Field Values
      • UTF32

        public static final java.lang.String UTF32
        Character offsets count UTF-32 code units.

        Implementation note: these are the same as Unicode code points, so this kind may also be used for an encoding-agnostic representation of character offsets.

        See Also:
        Constant Field Values