| gnu.lists.Consumer
All known Subclasses: gnu.kawa.xslt.XslTranslator, gnu.lists.FilterConsumer, gnu.lists.PrintConsumer, gnu.kawa.sax.ContentConsumer,
Consumer | public interface Consumer (Code) | | A Consumer is something that will accept data (output),
and do something with it.
A consumer is like a SAX DocumentHandler or a PrintWriter,
but more abstract. If a Sequence class impleemnts Consumer,
then data "written" to the sequence will be inserted in the sequence.
Note: This interface is not quite final. For example it is
probable we will add methods for comments, processing instructions, etc.
|
Method Summary | |
public void | endAttribute() End of an attribute or end of an actual parameter.
The former use matches a startAttribute; the latter may not,
and can be used to separate parameters in a parameter list.
This double duty suggsts the method should at least be re-named. | public void | endDocument() | public void | endElement() | public boolean | ignoring() True if consumer is ignoring rest of element.
The producer can use this information to skip ahead. | public void | startAttribute(Object attrType) Write a attribute for the current element.
This is only allowed immediately after a startElement. | public void | startDocument() | public void | startElement(Object type) | public void | write(int ch) | public void | write(String string) | public void | write(CharSequence string, int start, int length) | public void | write(char[] buf, int start, int length) | public void | writeBoolean(boolean v) | public void | writeDouble(double v) | public void | writeFloat(float v) | public void | writeInt(int v) | public void | writeLong(long v) | public void | writeObject(Object v) |
endAttribute | public void endAttribute()(Code) | | End of an attribute or end of an actual parameter.
The former use matches a startAttribute; the latter may not,
and can be used to separate parameters in a parameter list.
This double duty suggsts the method should at least be re-named.
|
endDocument | public void endDocument()(Code) | | |
endElement | public void endElement()(Code) | | |
ignoring | public boolean ignoring()(Code) | | True if consumer is ignoring rest of element.
The producer can use this information to skip ahead.
|
startAttribute | public void startAttribute(Object attrType)(Code) | | Write a attribute for the current element.
This is only allowed immediately after a startElement.
|
startDocument | public void startDocument()(Code) | | |
write | public void write(int ch)(Code) | | |
write | public void write(char[] buf, int start, int length)(Code) | | |
writeBoolean | public void writeBoolean(boolean v)(Code) | | |
writeDouble | public void writeDouble(double v)(Code) | | |
writeFloat | public void writeFloat(float v)(Code) | | |
writeInt | public void writeInt(int v)(Code) | | |
writeLong | public void writeLong(long v)(Code) | | |
|
|