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)
beginAttribute
public void beginAttribute(String attrName,
Object attrType)
Write a attribute for the current group.
This is only allowed immediately after a beginGroup.
- beginAttribute in interface Consumer
beginGroup
public void beginGroup(String typeName,
Object type)
- beginGroup in interface Consumer
ignoring
public boolean ignoring()
True if consumer is ignoring rest of group.
The producer can use this information to skip ahead.
- ignoring in interface Consumer
startNumber
protected void startNumber()