public interface Consumer
extends java.lang.Appendable, java.util.function.Consumer<java.lang.Object>, java.util.function.IntConsumer, java.util.function.LongConsumer, java.util.function.DoubleConsumer
Note: This interface is not quite final. For example it is probable we will add methods for comments, processing instructions, etc.
Modifier and Type | Method and Description |
---|---|
default void |
accept(double t) |
default void |
accept(int t) |
default void |
accept(long t) |
default void |
accept(java.lang.Object t) |
Consumer |
append(char c) |
Consumer |
append(java.lang.CharSequence csq) |
Consumer |
append(java.lang.CharSequence csq,
int start,
int end) |
void |
endAttribute()
End of an attribute or end of an actual parameter.
|
void |
endDocument() |
void |
endElement() |
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 start,
int length) |
void |
write(java.lang.CharSequence string,
int start,
int length) |
void |
write(int ch) |
void |
write(java.lang.String string) |
void |
writeBoolean(boolean v) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeObject(java.lang.Object v) |
void writeBoolean(boolean v)
void writeFloat(float v)
void writeDouble(double v)
void writeInt(int v)
void writeLong(long v)
void startDocument()
void endDocument()
void startElement(java.lang.Object type)
void endElement()
void startAttribute(java.lang.Object attrType)
void endAttribute()
void writeObject(java.lang.Object v)
boolean ignoring()
void write(int ch)
void write(java.lang.String string)
void write(java.lang.CharSequence string, int start, int length)
void write(char[] buf, int start, int length)
Consumer append(char c)
append
in interface java.lang.Appendable
Consumer append(java.lang.CharSequence csq)
append
in interface java.lang.Appendable
Consumer append(java.lang.CharSequence csq, int start, int end)
append
in interface java.lang.Appendable
default void accept(java.lang.Object t)
accept
in interface java.util.function.Consumer<java.lang.Object>
default void accept(int t)
accept
in interface java.util.function.IntConsumer
default void accept(long t)
accept
in interface java.util.function.LongConsumer
default void accept(double t)
accept
in interface java.util.function.DoubleConsumer