Class TinyBuilderCondensed

All Implemented Interfaces:
Result, Receiver

public class TinyBuilderCondensed extends TinyBuilder
Variant of the TinyBuilder to create a tiny tree in which multiple text nodes or attribute nodes sharing the same string value economize on space by only holding the value once.
  • Field Details

    • textValues

      public IntHashMap<int[]> textValues
  • Constructor Details

  • Method Details

    • endElement

      public void endElement() throws XPathException
      Description copied from class: TinyBuilder
      Callback interface for SAX: not for application use
      Specified by:
      endElement in interface Receiver
      Overrides:
      endElement in class TinyBuilder
      Throws:
      XPathException - if an error occurs
    • attribute

      public void attribute(NodeName nameCode, SimpleType typeCode, CharSequence value, int locationId, int properties) throws XPathException
      For attribute nodes, the commoning-up of stored values is achieved simply by calling intern() on the string value of the attribute.
      Specified by:
      attribute in interface Receiver
      Overrides:
      attribute in class TinyBuilder
      Parameters:
      nameCode - The name of the attribute
      typeCode - The type of the attribute, as held in the name pool. The additional bit NodeInfo.IS_DTD_TYPE may be set to indicate a DTD-derived type.
      value - the string value of the attribute
      locationId - an integer which can be interpreted using a LocationProvider to return information such as line number and system ID. If no location information is available, the value zero is supplied.
      properties - Bit significant value. The following bits are defined:
      DISABLE_ESCAPING
      Disable escaping for this attribute
      NO_SPECIAL_CHARACTERS
      Attribute value contains no special characters
      Throws:
      XPathException - if an error occurs