Class FilterConsumer
java.lang.Object
gnu.lists.FilterConsumer
- All Implemented Interfaces:
Consumer, XConsumer, Appendable, Consumer<Object>, DoubleConsumer, IntConsumer, LongConsumer
- Direct Known Subclasses:
NamedChildrenFilter, OrderedTuples, RelativeStepFilter, VoidConsumer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(char c) append(CharSequence csq) append(CharSequence csq, int start, int end) protected voidprotected voidvoidbeginEntity(Object baseUri) voidEnd of an attribute or end of an actual parameter.voidvoidvoidbooleanignoring()True if consumer is ignoring rest of element.voidstartAttribute(Object attrType) Write a attribute for the current element.voidvoidstartElement(Object type) voidwrite(char[] buf, int off, int len) voidwrite(int v) voidwrite(CharSequence str, int start, int length) voidvoidwriteBoolean(boolean v) voidwriteCDATA(char[] chars, int offset, int length) voidwriteComment(char[] chars, int offset, int length) voidwriteDouble(double v) voidwriteFloat(float v) voidwriteInt(int v) voidwriteLong(long v) voidvoidwriteProcessingInstruction(String target, char[] content, int offset, int length) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DoubleConsumer
andThenMethods inherited from interface IntConsumer
andThenMethods inherited from interface LongConsumer
andThen
-
Field Details
-
base
-
skipping
protected boolean skipping -
inAttribute
protected boolean inAttributeWe seen a startAttribute but not the closing endAttribute. -
attributeType
The 'attribute type' from the most recent startAttribute.
-
-
Constructor Details
-
FilterConsumer
-
-
Method Details
-
beforeContent
protected void beforeContent() -
beforeNode
protected void beforeNode() -
write
-
writeBoolean
public void writeBoolean(boolean v) - Specified by:
writeBooleanin interfaceConsumer
-
writeFloat
public void writeFloat(float v) - Specified by:
writeFloatin interfaceConsumer
-
writeDouble
public void writeDouble(double v) - Specified by:
writeDoublein interfaceConsumer
-
writeInt
-
writeLong
-
startDocument
public void startDocument()- Specified by:
startDocumentin interfaceConsumer
-
endDocument
public void endDocument()- Specified by:
endDocumentin interfaceConsumer
-
startElement
- Specified by:
startElementin interfaceConsumer
-
endElement
public void endElement()- Specified by:
endElementin interfaceConsumer
-
startAttribute
Description copied from interface:ConsumerWrite a attribute for the current element. This is only allowed immediately after a startElement.- Specified by:
startAttributein interfaceConsumer
-
endAttribute
public void endAttribute()Description copied from interface:ConsumerEnd of an attribute or end of an actual parameter. The former use matches a startAttribute; the latter may not, and can be used to separate parameters in a parameter list. This double duty suggsts the method should at least be re-named.- Specified by:
endAttributein interfaceConsumer
-
writeComment
public void writeComment(char[] chars, int offset, int length) - Specified by:
writeCommentin interfaceXConsumer
-
writeProcessingInstruction
- Specified by:
writeProcessingInstructionin interfaceXConsumer
-
writeCDATA
public void writeCDATA(char[] chars, int offset, int length) - Specified by:
writeCDATAin interfaceXConsumer
-
beginEntity
- Specified by:
beginEntityin interfaceXConsumer
-
endEntity
-
writeObject
- Specified by:
writeObjectin interfaceConsumer
-
ignoring
-
write
-
write
-
write
-
append
- Specified by:
appendin interfaceAppendable- Specified by:
appendin interfaceConsumer
-
append
- Specified by:
appendin interfaceAppendable- Specified by:
appendin interfaceConsumer
-
append
- Specified by:
appendin interfaceAppendable- Specified by:
appendin interfaceConsumer
-