gnu.lists
Class FilterConsumer
- Consumer
public class FilterConsumer
extends java.lang.Object
A Consumer that wraps some other Consumer.
attributeType
protected Object attributeType
The 'attribute type' from the most recent startAttribute.
inAttribute
protected boolean inAttribute
We seen a startAttribute but not the closing endAttribute.
skipping
protected boolean skipping
FilterConsumer
public FilterConsumer(Consumer base)
beforeContent
protected void beforeContent()
endAttribute
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.
- endAttribute in interface Consumer
ignoring
public boolean ignoring()
True if consumer is ignoring rest of element.
The producer can use this information to skip ahead.
- ignoring in interface Consumer
startAttribute
public void startAttribute(Object attrType)
Write a attribute for the current element.
This is only allowed immediately after a startElement.
- startAttribute in interface Consumer
write
public void write(CharSequence str,
int start,
int length)
- write in interface Consumer
write
public void write(char[] buf,
int off,
int len)
- write in interface Consumer