gnu.lists

Interface XConsumer

All Superinterfaces:
Consumer
Known Implementing Classes:
Nodes, NodeTree, SortedNodes, TreeList, Values, ValueStack, XMLPrinter

public interface XConsumer
extends Consumer

A Consumer extended with XML-specific methods. This should probably be in gnu.xml, but that complications TreeList. FIXME.

Method Summary

void
writeBaseUri(Object uri)
Write/set the base-uri property of the current element or document.
void
writeCDATA(char[] chars, int offset, int length)
void
writeComment(char[] chars, int offset, int length)
void
writeProcessingInstruction(String target, char[] content, int offset, int length)

Methods inherited from interface gnu.lists.Consumer

beginAttribute, beginDocument, beginGroup, endAttribute, endDocument, endGroup, ignoring, write, writeBoolean, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeObject

Method Details

writeBaseUri

public void writeBaseUri(Object uri)
Write/set the base-uri property of the current element or document. Only allowed immediately following beginDocument, beginGroup, or writeProcessingInstruction.

writeCDATA

public void writeCDATA(char[] chars,
                       int offset,
                       int length)

writeComment

public void writeComment(char[] chars,
                         int offset,
                         int length)

writeProcessingInstruction

public void writeProcessingInstruction(String target,
                                       char[] content,
                                       int offset,
                                       int length)