javax.xml.transform.Result
, Receiver
public final class SequenceOutputter extends SequenceWriter
This class is not used to build temporary trees. For that, the ComplexContentOutputter is used.
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
pipelineConfiguration, previousAtomic, systemId
Constructor | Description |
---|---|
SequenceOutputter(PipelineConfiguration pipe) |
Create a new SequenceOutputter
|
SequenceOutputter(PipelineConfiguration pipe,
Controller controller) |
|
SequenceOutputter(PipelineConfiguration pipe,
Controller controller,
int estimatedSize) |
Modifier and Type | Method | 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
|
ValueRepresentation<Item> |
getSequence() |
Get the sequence that has been built
|
SequenceIterator<? extends 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append, getConfiguration, getNamePool, getPipelineConfiguration, getSystemId, open, setPipelineConfiguration, setSystemId, setUnparsedEntity
adviseReuse, append, attribute, characters, close, comment, endDocument, endElement, namespace, processingInstruction, startContent, startDocument, startElement, usesTypeAnnotations
public SequenceOutputter(PipelineConfiguration pipe)
pipe
- the pipeline configurationpublic SequenceOutputter(PipelineConfiguration pipe, Controller controller, int estimatedSize)
public SequenceOutputter(PipelineConfiguration pipe, Controller controller)
public static SequenceOutputter allocateSequenceOutputter(XPathContext context, int hostLang)
context
- dynamic XPath contexthostLang
- host language (XSLT/XQuery)com.saxonica.bytecode.util.CompilerService
public void reset()
public void write(Item item)
write
in class SequenceWriter
item
- the item to be written to the sequencepublic ValueRepresentation<Item> getSequence()
public SequenceIterator<? extends Item> iterate()
public java.util.List<Item> getList()
public Item getFirstItem()
public Item popLastItem()