Class StoredTree.Inflater

java.lang.Object
org.apache.sis.io.wkt.StoredTree.Inflater
Enclosing class:
StoredTree

private static final class StoredTree.Inflater extends Object
A helper class for decompressing a tree of Elements from a tree of StoredTree.Nodes. This is the converse of StoredTree.Deflater.
See Also:
  • Field Details

    • isFragment

      private final int isFragment
      If Element.offset must be fixed to a value, the bitwise NOT value of that offset. Otherwise 0. This field packs two information:
    • offsets

      private final short[] offsets
      The StoredTree.offsets array. Shall not be modified because potentially shared. Ignored if isFragment != 0.
    • index

      private int index
      Index of the next offset to return in the offsets array. Ignored if isFragment != 0.
    • errorLocale

      final Locale errorLocale
      Locale to use for producing error message.
  • Constructor Details

    • Inflater

      Inflater(AbstractParser parser, short[] offsets, int isFragment)
      Creates a new inflater.
      Parameters:
      parser - the parser which will be used for parsing the tree.
      offsets - the StoredTree.offsets array. Will not be modified.
      isFragment - non-zero if and only if Element.isFragment is true. In such case, this value must be ~Element.offset.
  • Method Details

    • nextOffset

      final int nextOffset()
      Returns the value to assign to Element.offset for the next element.