public class PrintConsumer extends java.io.PrintWriter implements java.lang.Appendable, XConsumer
Modifier and Type | Field and Description |
---|---|
protected Consumer |
base |
protected boolean |
skipping |
Constructor and Description |
---|
PrintConsumer(Consumer out,
boolean autoFlush) |
PrintConsumer(java.io.OutputStream out,
boolean autoFlush) |
PrintConsumer(java.io.Writer out) |
PrintConsumer(java.io.Writer out,
boolean autoFlush) |
Modifier and Type | Method and Description |
---|---|
PrintConsumer |
append(char c) |
PrintConsumer |
append(java.lang.CharSequence csq) |
PrintConsumer |
append(java.lang.CharSequence csq,
int start,
int end) |
protected void |
beforeContent() |
protected void |
beforeNode() |
void |
beginEntity(java.lang.Object baseUri) |
protected void |
clearWordEnd() |
void |
endAttribute()
End of an attribute or end of an actual parameter.
|
void |
endDocument() |
void |
endElement() |
void |
endEntity() |
void |
endHiderSection()
End section controled by a show/hide button
|
void |
endLogicalBlock(java.lang.String suffix) |
static void |
endLogicalBlock(java.lang.String suffix,
Consumer out) |
protected void |
endNumber() |
void |
freshLine() |
gnu.kawa.io.PrettyWriter |
getPrettyWriter() |
boolean |
ignoring()
True if consumer is ignoring rest of element.
|
boolean |
isDomTerm() |
void |
setIndentation(int amount,
boolean current) |
void |
startAttribute(java.lang.Object attrType)
Write a attribute for the current element.
|
void |
startDocument() |
void |
startElement(java.lang.Object type) |
void |
startHiderSection(boolean show)
Start section controled by a show/hide button.
|
void |
startLogicalBlock(java.lang.String prefix,
boolean perLine,
java.lang.String suffix) |
static void |
startLogicalBlock(java.lang.String prefix,
boolean perLine,
java.lang.String suffix,
Consumer out) |
void |
startLogicalBlock(java.lang.String prefix,
java.lang.String suffix,
int indent) |
protected void |
startNumber() |
void |
write(java.lang.CharSequence csq,
int start,
int length) |
void |
writeBoolean(boolean v) |
void |
writeBreak(int kind) |
void |
writeBreakFill() |
static void |
writeBreakFill(Consumer out) |
void |
writeBreakLinear()
Write a new-line iff the containing section cannot be printed
on one line.
|
void |
writeCDATA(char[] chars,
int offset,
int length) |
void |
writeComment(char[] chars,
int offset,
int length) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeObject(java.lang.Object v) |
void |
writeProcessingInstruction(java.lang.String target,
char[] content,
int offset,
int length) |
protected void |
writeRaw(char[] chars,
int start,
int length) |
protected void |
writeRaw(int v) |
protected void |
writeRaw(java.lang.String str) |
protected void |
writeRaw(java.lang.String str,
int start,
int length) |
void |
writeShowHideButton(boolean show)
If supported (i.e.
|
void |
writeSpace(int kind) |
void |
writeSpaceFill() |
static void |
writeSpaceFill(Consumer out) |
void |
writeSpaceLinear() |
void |
writeWordEnd() |
void |
writeWordStart() |
checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected boolean skipping
protected Consumer base
public PrintConsumer(java.io.Writer out)
public PrintConsumer(java.io.Writer out, boolean autoFlush)
public PrintConsumer(Consumer out, boolean autoFlush)
public PrintConsumer(java.io.OutputStream out, boolean autoFlush)
public gnu.kawa.io.PrettyWriter getPrettyWriter()
protected void startNumber()
protected void endNumber()
public PrintConsumer append(char c)
append
in interface java.lang.Appendable
append
in class java.io.PrintWriter
public PrintConsumer append(java.lang.CharSequence csq)
append
in interface java.lang.Appendable
append
in class java.io.PrintWriter
public PrintConsumer append(java.lang.CharSequence csq, int start, int end)
append
in interface java.lang.Appendable
append
in class java.io.PrintWriter
public void write(java.lang.CharSequence csq, int start, int length)
public void freshLine()
public void writeSpace(int kind)
public void writeBreak(int kind)
public static void writeBreakFill(Consumer out)
public void writeBreakFill()
public static void writeSpaceFill(Consumer out)
public void writeSpaceFill()
public void writeSpaceLinear()
public void writeBreakLinear()
public void setIndentation(int amount, boolean current)
public boolean isDomTerm()
public void writeShowHideButton(boolean show)
public void startHiderSection(boolean show)
public void endHiderSection()
public static void startLogicalBlock(java.lang.String prefix, boolean perLine, java.lang.String suffix, Consumer out)
public void startLogicalBlock(java.lang.String prefix, boolean perLine, java.lang.String suffix)
public void startLogicalBlock(java.lang.String prefix, java.lang.String suffix, int indent)
public static void endLogicalBlock(java.lang.String suffix, Consumer out)
public void endLogicalBlock(java.lang.String suffix)
protected void beforeContent()
protected void beforeNode()
public void writeWordStart()
public void writeWordEnd()
protected void clearWordEnd()
public void writeBoolean(boolean v)
public void writeFloat(float v)
public void writeDouble(double v)
public void writeInt(int v)
public void writeLong(long v)
public void startDocument()
public void endDocument()
public void startElement(java.lang.Object type)
public void endElement()
public void startAttribute(java.lang.Object attrType)
Consumer
public void endAttribute()
Consumer
public void writeComment(char[] chars, int offset, int length)
writeComment
in interface XConsumer
public void writeProcessingInstruction(java.lang.String target, char[] content, int offset, int length)
writeProcessingInstruction
in interface XConsumer
public void writeCDATA(char[] chars, int offset, int length)
writeCDATA
in interface XConsumer
public void beginEntity(java.lang.Object baseUri)
beginEntity
in interface XConsumer
protected void writeRaw(int v)
protected void writeRaw(java.lang.String str)
protected void writeRaw(java.lang.String str, int start, int length)
protected void writeRaw(char[] chars, int start, int length)
public void writeObject(java.lang.Object v)
public boolean ignoring()
Consumer