gnu.lists
Class PrintConsumer
- Consumer
public class PrintConsumer
extends PrintWriter
A Consumer that extends a PrintWriter. Useful for formatting.
PrintConsumer
public PrintConsumer(OutputStream out,
boolean autoFlush)
PrintConsumer
public PrintConsumer(Writer out)
PrintConsumer
public PrintConsumer(Writer out,
boolean autoFlush)
PrintConsumer
public PrintConsumer(Consumer out,
boolean autoFlush)
endAttribute
public void endAttribute()
End 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.
- endAttribute in interface Consumer
endNumber
protected void endNumber()
ignoring
public boolean ignoring()
True if consumer is ignoring rest of element.
The producer can use this information to skip ahead.
- ignoring in interface Consumer
startAttribute
public void startAttribute(Object attrType)
Write a attribute for the current element.
This is only allowed immediately after a startElement.
- startAttribute in interface Consumer
startNumber
protected void startNumber()
write
public void write(CharSequence csq,
int start,
int end)
- write in interface Consumer