gnu.lists

Class FilterConsumer

public class FilterConsumer extends Object implements Consumer

A Consumer that wraps some other Consumer.
Field Summary
protected ObjectattributeType
The 'attribute type' from the most recent startAttribute.
protected Consumerbase
protected booleaninAttribute
We seen a startAttribute but not the closing endAttribute.
protected booleanskipping
Constructor Summary
FilterConsumer(Consumer base)
Method Summary
protected voidbeforeContent()
voidendAttribute()
voidendDocument()
voidendElement()
booleanignoring()
voidstartAttribute(Object attrType)
voidstartDocument()
voidstartElement(Object type)
voidwrite(int v)
voidwrite(char[] buf, int off, int len)
voidwrite(String str)
voidwrite(CharSequence str, int start, int length)
voidwriteBoolean(boolean v)
voidwriteDouble(double v)
voidwriteFloat(float v)
voidwriteInt(int v)
voidwriteLong(long v)
voidwriteObject(Object v)

Field Detail

attributeType

protected Object attributeType
The 'attribute type' from the most recent startAttribute.

base

protected Consumer base

inAttribute

protected boolean inAttribute
We seen a startAttribute but not the closing endAttribute.

skipping

protected boolean skipping

Constructor Detail

FilterConsumer

public FilterConsumer(Consumer base)

Method Detail

beforeContent

protected void beforeContent()

endAttribute

public void endAttribute()

endDocument

public void endDocument()

endElement

public void endElement()

ignoring

public boolean ignoring()

startAttribute

public void startAttribute(Object attrType)

startDocument

public void startDocument()

startElement

public void startElement(Object type)

write

public void write(int v)

write

public void write(char[] buf, int off, int len)

write

public void write(String str)

write

public void write(CharSequence str, int start, int length)

writeBoolean

public void writeBoolean(boolean v)

writeDouble

public void writeDouble(double v)

writeFloat

public void writeFloat(float v)

writeInt

public void writeInt(int v)

writeLong

public void writeLong(long v)

writeObject

public void writeObject(Object v)