public final class SequenceOutputter extends SequenceWriter
This class is not used to build temporary trees. For that, the ComplexContentOutputter is used.
pipelineConfiguration, previousAtomic, systemId
Constructor and Description |
---|
SequenceOutputter(PipelineConfiguration pipe)
Create a new SequenceOutputter
|
SequenceOutputter(PipelineConfiguration pipe,
int estimatedSize) |
Modifier and Type | Method and Description |
---|---|
static SequenceOutputter |
allocateSequenceOutputter(XPathContext context,
int hostLang)
Allocate a SequenceOutputter.
|
Item |
getFirstItem()
Get the first item in the sequence that has been built
|
java.util.List<Item<?>> |
getList()
Get the list containing the sequence of items
|
Sequence<?> |
getSequence()
Get the sequence that has been built
|
SequenceIterator<Item<?>> |
iterate()
Get an iterator over the sequence of items that has been constructed
|
Item |
popLastItem()
Get the last item in the sequence that has been built, and remove it
|
void |
reset()
Clear the contents of the SequenceOutputter and make it available for reuse
|
void |
write(Item item)
Method to be supplied by subclasses: output one item in the sequence.
|
append, attribute, bulkCopyElementNode, characters, close, comment, endDocument, endElement, getTreeModel, graftElementNode, isReadyForBulkCopy, isReadyForGrafting, namespace, processingInstruction, setTreeModel, setUnparsedEntity, startContent, startDocument, startElement, usesTypeAnnotations
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getNamePool, getPipelineConfiguration, getSystemId, handlesAppend, open, setPipelineConfiguration, setSystemId
public SequenceOutputter(PipelineConfiguration pipe)
pipe
- the pipeline configurationpublic SequenceOutputter(PipelineConfiguration pipe, int estimatedSize)
public static SequenceOutputter allocateSequenceOutputter(XPathContext context, int hostLang)
context
- dynamic XPath contexthostLang
- host language (XSLT/XQuery)CompilerService
public void reset()
public void write(Item item)
write
in class SequenceWriter
item
- the item to be written to the sequencepublic Sequence<?> getSequence()
public SequenceIterator<Item<?>> iterate()
public java.util.List<Item<?>> getList()
public Item getFirstItem()
public Item popLastItem()
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.