Class StringValueGatherer

java.lang.Object
com.saxonica.ee.validate.AbstractReceiver
com.saxonica.ee.stream.feed.StringValueGatherer
All Implemented Interfaces:
Result, Receiver

public class StringValueGatherer extends AbstractReceiver
A StringValueGatherer is a Receiver that computes the string value of an element in streaming mode, by copying all the text nodes to a supplied receiver.
  • Constructor Details Link icon

    • StringValueGatherer Link icon

      public StringValueGatherer(UnicodeBuilder buffer)
  • Method Details Link icon

    • characters Link icon

      public void characters(UnicodeString chars, Location locationId, int properties) throws XPathException
      Description copied from interface: Receiver
      Notify character data. Note that some receivers may require the character data to be sent in a single event, but in general this is not a requirement.
      Specified by:
      characters in interface Receiver
      Overrides:
      characters in class AbstractReceiver
      Parameters:
      chars - The characters
      locationId - provides information such as line number and system ID.
      properties - Bit significant value. The following bits are defined:
      DISABLE_ESCAPING
      Disable escaping for this text node
      USE_CDATA
      Output as a CDATA section
      Throws:
      XPathException - if an error occurs