| gnu.lists.Consumer
All known Subclasses: gnu.lists.TreeList, gnu.mapping.OutPort,
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.
|
beginAttribute | public void beginAttribute(String attrName, Object attrType)(Code) | | Write a attribute for the current group.
This is only allowed immediately after a beginGroup.
|
endAttribute | public void endAttribute()(Code) | | |
ignoring | public boolean ignoring()(Code) | | True if consumer is ignoring rest of group.
The producer can use this information to skip ahead.
|
write | public void write(char[] buf, int off, int len)(Code) | | |
writeBoolean | public void writeBoolean(boolean v)(Code) | | |
writeChar | public void writeChar(int 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) | | |
|
|