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 Consumer
public void writeFloat(float v)
writeFloat
in interface Consumer
public void writeDouble(double v)
writeDouble
in interface Consumer
public void startDocument()
startDocument
in interface Consumer
public void endDocument()
endDocument
in interface Consumer
public void startElement(java.lang.Object type)
startElement
in interface Consumer
public void endElement()
endElement
in interface Consumer
public void startAttribute(java.lang.Object attrType)
Consumer
startAttribute
in interface Consumer
public void endAttribute()
Consumer
endAttribute
in interface Consumer
public void writeComment(char[] chars, int offset, int length)
writeComment
in interface XConsumer
public void writeProcessingInstruction(java.lang.String target, char[] content, int offset, int length)
writeProcessingInstruction
in interface XConsumer
public void writeCDATA(char[] chars, int offset, int length)
writeCDATA
in interface XConsumer
public void beginEntity(java.lang.Object baseUri)
beginEntity
in interface XConsumer
public void writeObject(java.lang.Object v)
writeObject
in interface Consumer
public boolean ignoring()
Consumer
public void write(java.lang.CharSequence str, int start, int length)
public Consumer append(char c)
public Consumer append(java.lang.CharSequence csq)