| java.lang.Object java.io.Writer java.io.PrintWriter gnu.lists.PrintConsumer gnu.mapping.OutPort
All known Subclasses: gnu.xml.XMLPrinter, gnu.mapping.CharArrayOutPort,
Constructor Summary | |
protected | OutPort(Writer base, PrettyWriter out, boolean autoflush) | protected | OutPort(OutPort out, boolean autoflush) | protected | OutPort(Writer out, boolean autoflush) | public | OutPort(Writer base, boolean printPretty, boolean autoflush) | public | OutPort(Writer base, boolean printPretty, boolean autoflush, Path path) | public | OutPort(OutputStream out) | public | OutPort(OutputStream out, Path path) | public | OutPort(Writer out) | public | OutPort(Writer base, Path path) | public | OutPort(Writer base, boolean autoflush, Path path) |
Method Summary | |
public void | clearBuffer() | public void | close() | public static void | closeLogFile() | protected boolean | closeOnExit() True if the port should be automatically closed on exit.
(If so, it will be registered by WriterManager. | public void | echo(char[] buf, int off, int len) | public void | endAttribute() No more attributes in this element. | public void | endElement() | public void | endLogicalBlock(String suffix) | public static OutPort | errDefault() | public void | freshLine() | public int | getColumnNumber() | final protected static boolean | isWordChar(char ch) | public static OutPort | openFile(Object fname) | public static OutPort | outDefault() | public void | print(int v) | public void | print(long v) | public void | print(double v) | public void | print(float v) | public void | print(String v) | public void | print(Object v) | public void | print(Consumer out) | public static void | runCleanups() | public void | setColumnNumber(int column) | public static void | setErrDefault(OutPort e) | public void | setIndentation(int amount, boolean current) | public static void | setLogFile(String name) | public static void | setOutDefault(OutPort o) | public void | startAttribute(Object attrType) Write a attribute for the current element.
This is only allowed immediately after a startElement. | public void | startElement(Object type) | public void | startLogicalBlock(String prefix, boolean perLine, String suffix) | public void | startLogicalBlock(String prefix, String suffix, int indent) | public void | writeBreak(int kind) | public void | writeBreakFill() | public void | writeBreakLinear() Write a new-line iff the containing section cannot be printed
on one line. | public void | writeSpaceFill() Write a new-line if needed, space otherwise. | public void | writeSpaceLinear() | public void | writeWordEnd() Note the end of a "word". | public void | writeWordStart() Maybe write a word-separating space.
Specifically, write a space if the previous output
was
OutPort.writeWordEnd . |
printReadable | public boolean printReadable(Code) | | |
unregisterRef | protected Object unregisterRef(Code) | | An index into the WriterManager's internal table.
The value zero means it is unregistered.
|
OutPort | protected OutPort(Writer out, boolean autoflush)(Code) | | |
OutPort | public OutPort(Writer base, boolean printPretty, boolean autoflush)(Code) | | |
OutPort | public OutPort(Writer base, boolean printPretty, boolean autoflush, Path path)(Code) | | |
clearBuffer | public void clearBuffer()(Code) | | |
close | public void close()(Code) | | |
closeOnExit | protected boolean closeOnExit()(Code) | | True if the port should be automatically closed on exit.
(If so, it will be registered by WriterManager.
|
endAttribute | public void endAttribute()(Code) | | No more attributes in this element.
|
endElement | public void endElement()(Code) | | |
endLogicalBlock | public void endLogicalBlock(String suffix)(Code) | | |
freshLine | public void freshLine()(Code) | | |
getColumnNumber | public int getColumnNumber()(Code) | | |
isWordChar | final protected static boolean isWordChar(char ch)(Code) | | |
print | public void print(int v)(Code) | | |
print | public void print(long v)(Code) | | |
print | public void print(double v)(Code) | | |
print | public void print(float v)(Code) | | |
runCleanups | public static void runCleanups()(Code) | | |
setColumnNumber | public void setColumnNumber(int column)(Code) | | |
setIndentation | public void setIndentation(int amount, boolean current)(Code) | | |
startAttribute | public void startAttribute(Object attrType)(Code) | | Write a attribute for the current element.
This is only allowed immediately after a startElement.
|
startLogicalBlock | public void startLogicalBlock(String prefix, boolean perLine, String suffix)(Code) | | |
startLogicalBlock | public void startLogicalBlock(String prefix, String suffix, int indent)(Code) | | |
writeBreak | public void writeBreak(int kind)(Code) | | |
writeBreakFill | public void writeBreakFill()(Code) | | |
writeBreakLinear | public void writeBreakLinear()(Code) | | Write a new-line iff the containing section cannot be printed
on one line. Either all linear-style newlines in a logical
block becomes spaces (if it all fits in a line), or none
of them do.
|
writeSpaceFill | public void writeSpaceFill()(Code) | | Write a new-line if needed, space otherwise.
|
writeSpaceLinear | public void writeSpaceLinear()(Code) | | |
writeWordStart | public void writeWordStart()(Code) | | Maybe write a word-separating space.
Specifically, write a space if the previous output
was
OutPort.writeWordEnd . Otherwise, do nothing.
|
Methods inherited from java.io.PrintWriter | public PrintWriter append(CharSequence csq)(Code)(Java Doc) public PrintWriter append(CharSequence csq, int start, int end)(Code)(Java Doc) public PrintWriter append(char c)(Code)(Java Doc) public boolean checkError()(Code)(Java Doc) protected void clearError()(Code)(Java Doc) public void close()(Code)(Java Doc) public void flush()(Code)(Java Doc) public PrintWriter format(String format, Object... args)(Code)(Java Doc) public PrintWriter format(Locale l, String format, Object... args)(Code)(Java Doc) public void print(boolean b)(Code)(Java Doc) public void print(char c)(Code)(Java Doc) public void print(int i)(Code)(Java Doc) public void print(long l)(Code)(Java Doc) public void print(float f)(Code)(Java Doc) public void print(double d)(Code)(Java Doc) public void print(char s)(Code)(Java Doc) public void print(String s)(Code)(Java Doc) public void print(Object obj)(Code)(Java Doc) public PrintWriter printf(String format, Object... args)(Code)(Java Doc) public PrintWriter printf(Locale l, String format, Object... args)(Code)(Java Doc) public void println()(Code)(Java Doc) public void println(boolean x)(Code)(Java Doc) public void println(char x)(Code)(Java Doc) public void println(int x)(Code)(Java Doc) public void println(long x)(Code)(Java Doc) public void println(float x)(Code)(Java Doc) public void println(double x)(Code)(Java Doc) public void println(char x)(Code)(Java Doc) public void println(String x)(Code)(Java Doc) public void println(Object x)(Code)(Java Doc) protected void setError()(Code)(Java Doc) public void write(int c)(Code)(Java Doc) public void write(char buf, int off, int len)(Code)(Java Doc) public void write(char buf)(Code)(Java Doc) public void write(String s, int off, int len)(Code)(Java Doc) public void write(String s)(Code)(Java Doc)
|
|
|