gnu.mapping
public class OutPort extends PrintConsumer implements Printable
| Field Summary | |
|---|---|
| protected PrettyWriter | bout |
| static ThreadLocation | errLocation |
| AbstractFormat | objectFormat |
| static ThreadLocation | outLocation |
| boolean | printReadable |
| protected Object | unregisterRef An index into the WriterManager's internal table.
|
| Constructor Summary | |
|---|---|
| protected | OutPort(Writer base, PrettyWriter out, boolean autoflush) |
| protected | OutPort(OutPort out, boolean autoflush) |
| protected | OutPort(Writer out, boolean autoflush) |
| OutPort(Writer base, boolean printPretty, boolean autoflush) | |
| OutPort(Writer base, boolean printPretty, boolean autoflush, Path path) | |
| OutPort(OutputStream out) | |
| OutPort(OutputStream out, Path path) | |
| OutPort(Writer out) | |
| OutPort(Writer base, Path path) | |
| OutPort(Writer base, boolean autoflush, Path path) | |
| Method Summary | |
|---|---|
| void | clearBuffer() |
| void | close() |
| static void | closeLogFile() |
| protected boolean | closeOnExit() True if the port should be automatically closed on exit.
|
| void | echo(char[] buf, int off, int len) |
| void | endAttribute() No more attributes in this element. |
| void | endElement() |
| void | endLogicalBlock(String suffix) |
| static OutPort | errDefault() |
| void | freshLine() |
| int | getColumnNumber() |
| protected static boolean | isWordChar(char ch) |
| static OutPort | openFile(Object fname) |
| static OutPort | outDefault() |
| void | print(int v) |
| void | print(long v) |
| void | print(double v) |
| void | print(float v) |
| void | print(String v) |
| void | print(Object v) |
| void | print(Consumer out) |
| static void | runCleanups() |
| void | setColumnNumber(int column) |
| static void | setErrDefault(OutPort e) |
| void | setIndentation(int amount, boolean current) |
| static void | setLogFile(String name) |
| static void | setOutDefault(OutPort o) |
| void | startAttribute(Object attrType) Write a attribute for the current element.
|
| void | startElement(Object type) |
| void | startLogicalBlock(String prefix, boolean perLine, String suffix) |
| void | startLogicalBlock(String prefix, String suffix, int indent) |
| void | writeBreak(int kind) |
| void | writeBreakFill() |
| void | writeBreakLinear() Write a new-line iff the containing section cannot be printed
on one line. |
| void | writeSpaceFill() Write a new-line if needed, space otherwise. |
| void | writeSpaceLinear() |
| void | writeWordEnd() Note the end of a "word". |
| void | writeWordStart() Maybe write a word-separating space.
|