public class TextBlockWriter extends BlockWriter
Description: Concrete implementation of BlockWriter for purely textual output like console output. It can probably be used for any kind of output
where monospaced font is used.
Copyright: Copyright (c) 2008
Company: Clark & Parsia, LLC.
| Constructor and Description |
|---|
TextBlockWriter(Writer outWriter) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearBlocks()
Clear all the blocks previously defined.
|
void |
endBlock()
Ends the _current alignment block.
|
void |
indent(int count)
Print given number of spaces.
|
void |
println() |
void |
printSpace() |
void |
startBlock()
Start a new block for alignment.
|
void |
write(char[] buf,
int off,
int len) |
void |
write(int c) |
void |
write(String s,
int off,
int len) |
public TextBlockWriter(Writer outWriter)
out - public void println()
BlockWriterprintln in class BlockWriterpublic void printSpace()
printSpace in class BlockWriterpublic void indent(int count)
count - public void clearBlocks()
clearBlocks in class BlockWriterpublic void startBlock()
BlockWriter.endBlock() call.startBlock in class BlockWriterpublic void endBlock()
endBlock in class BlockWriterpublic void write(char[] buf,
int off,
int len)
write in class BlockWriterpublic void write(int c)
write in class BlockWriterpublic void write(String s, int off, int len)
write in class BlockWriterCopyright © 2018. All rights reserved.