public class FilterConsumer extends java.lang.Object implements XConsumer
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
attributeType
The 'attribute type' from the most recent startAttribute.
|
protected Consumer |
base |
protected boolean |
inAttribute
We seen a startAttribute but not the closing endAttribute.
|
protected boolean |
skipping |
| Constructor and Description |
|---|
FilterConsumer(Consumer base) |
| Modifier and Type | Method and Description |
|---|---|
Consumer |
append(char c) |
Consumer |
append(java.lang.CharSequence csq) |
Consumer |
append(java.lang.CharSequence csq,
int start,
int end) |
protected void |
beforeContent() |
protected void |
beforeNode() |
void |
beginEntity(java.lang.Object baseUri) |
void |
endAttribute()
End of an attribute or end of an actual parameter.
|
void |
endDocument() |
void |
endElement() |
void |
endEntity() |
boolean |
ignoring()
True if consumer is ignoring rest of element.
|
void |
startAttribute(java.lang.Object attrType)
Write a attribute for the current element.
|
void |
startDocument() |
void |
startElement(java.lang.Object type) |
void |
write(char[] buf,
int off,
int len) |
void |
write(java.lang.CharSequence str,
int start,
int length) |
void |
write(int v) |
void |
write(java.lang.String str) |
void |
writeBoolean(boolean v) |
void |
writeCDATA(char[] chars,
int offset,
int length) |
void |
writeComment(char[] chars,
int offset,
int length) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeObject(java.lang.Object v) |
void |
writeProcessingInstruction(java.lang.String target,
char[] content,
int offset,
int length) |
protected Consumer base
protected boolean skipping
protected boolean inAttribute
protected java.lang.Object attributeType
public FilterConsumer(Consumer base)
protected void beforeContent()
protected void beforeNode()
public void writeBoolean(boolean v)
writeBoolean in interface Consumerpublic void writeFloat(float v)
writeFloat in interface Consumerpublic void writeDouble(double v)
writeDouble in interface Consumerpublic void startDocument()
startDocument in interface Consumerpublic void endDocument()
endDocument in interface Consumerpublic void startElement(java.lang.Object type)
startElement in interface Consumerpublic void endElement()
endElement in interface Consumerpublic void startAttribute(java.lang.Object attrType)
ConsumerstartAttribute in interface Consumerpublic void endAttribute()
ConsumerendAttribute in interface Consumerpublic void writeComment(char[] chars,
int offset,
int length)
writeComment in interface XConsumerpublic void writeProcessingInstruction(java.lang.String target,
char[] content,
int offset,
int length)
writeProcessingInstruction in interface XConsumerpublic void writeCDATA(char[] chars,
int offset,
int length)
writeCDATA in interface XConsumerpublic void beginEntity(java.lang.Object baseUri)
beginEntity in interface XConsumerpublic void writeObject(java.lang.Object v)
writeObject in interface Consumerpublic boolean ignoring()
Consumerpublic void write(java.lang.CharSequence str,
int start,
int length)
public Consumer append(char c)
public Consumer append(java.lang.CharSequence csq)