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 write(int v)
public void writeBoolean(boolean v)
public void writeFloat(float v)
public void writeDouble(double v)
public void writeInt(int v)
public void writeLong(long v)
public void startDocument()
public void endDocument()
public void startElement(java.lang.Object type)
public void endElement()
public void startAttribute(java.lang.Object attrType)
Consumer
public void endAttribute()
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)
public boolean ignoring()
Consumer
public void write(char[] buf, int off, int len)
public void write(java.lang.String str)
public void write(java.lang.CharSequence str, int start, int length)
public Consumer append(char c)
append
in interface java.lang.Appendable
public Consumer append(java.lang.CharSequence csq)
append
in interface java.lang.Appendable
public Consumer append(java.lang.CharSequence csq, int start, int end)
append
in interface java.lang.Appendable