Package net.sf.saxon.str
Interface UniStringConsumer
-
- All Known Implementing Classes:
AbstractUniStringConsumer,StringValue.Builder,UnicodeBuilder
public interface UniStringConsumerInterface that accepts a string in the form of a sequence of CharSequences, which are conceptually concatenated (though in some implementations, the final string may never be materialized in memory)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UniStringConsumeraccept(UnicodeString chars)Process a supplied character sequencedefault voidclose()Complete the writing of characters to the result.default voidopen()Initial processing.
-
-
-
Method Detail
-
open
default void open() throws XPathExceptionInitial processing. This should be called before any calls on append. Default implementation does nothing.- Throws:
XPathException- if processing fails for any reason
-
accept
UniStringConsumer accept(UnicodeString chars) throws XPathException
Process a supplied character sequence- Parameters:
chars- the characters to be processed- Returns:
- this CharSequenceConsumer (to allow method chaining)
- Throws:
XPathException- if processing fails for any reason
-
close
default void close() throws XPathExceptionComplete the writing of characters to the result. The default implementation does nothing.- Throws:
XPathException- if processing fails for any reason
-
-