|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Consumer
A Consumer is something that will accept data (output), and do something with it. A consumer is like a SAX DocumentHandler or a PrintWriter, but more abstract. If a Sequence class impleemnts Consumer, then data "written" to the sequence will be inserted in the sequence.
Note: This interface is not quite final. For example it is probable we will add methods for comments, processing instructions, etc.
Method Summary | |
---|---|
Consumer |
append(char c)
|
Consumer |
append(java.lang.CharSequence csq)
|
Consumer |
append(java.lang.CharSequence csq,
int start,
int end)
|
void |
beginAttribute(java.lang.String attrName,
java.lang.Object attrType)
Write a attribute for the current group. |
void |
beginDocument()
|
void |
beginGroup(java.lang.String typeName,
java.lang.Object type)
|
void |
endAttribute()
|
void |
endDocument()
|
void |
endGroup(java.lang.String typeName)
|
boolean |
ignoring()
True if consumer is ignoring rest of group. |
void |
write(char[] buf,
int off,
int len)
|
void |
writeBoolean(boolean v)
|
void |
writeChar(int v)
|
void |
writeChars(java.lang.String str)
|
void |
writeDouble(double v)
|
void |
writeFloat(float v)
|
void |
writeInt(int v)
|
void |
writeLong(long v)
|
void |
writeObject(java.lang.Object v)
|
Method Detail |
---|
void writeChar(int v)
void writeBoolean(boolean v)
void writeFloat(float v)
void writeDouble(double v)
void writeInt(int v)
void writeLong(long v)
void beginDocument()
void endDocument()
void beginGroup(java.lang.String typeName, java.lang.Object type)
void endGroup(java.lang.String typeName)
void beginAttribute(java.lang.String attrName, java.lang.Object attrType)
void endAttribute()
void writeObject(java.lang.Object v)
boolean ignoring()
void writeChars(java.lang.String str)
void write(char[] buf, int off, int len)
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |