An extended PrintWriter.
printReadable
public boolean printReadable
unregisterRef
protected Object unregisterRef
An index into the WriterManager's internal table.
The value zero means it is unregistered.
OutPort
public OutPort(OutputStream out)
OutPort
public OutPort(OutputStream out,
Path path)
OutPort
public OutPort(Writer out)
OutPort
protected OutPort(Writer out,
boolean autoflush)
OutPort
public OutPort(Writer base,
boolean printPretty,
boolean autoflush)
OutPort
public OutPort(Writer base,
boolean printPretty,
boolean autoflush,
Path path)
OutPort
public OutPort(Writer base,
boolean autoflush,
Path path)
OutPort
public OutPort(Writer base,
Path path)
OutPort
protected OutPort(Writer base,
PrettyWriter out,
boolean autoflush)
OutPort
protected OutPort(OutPort out,
boolean autoflush)
clearBuffer
public void clearBuffer()
closeLogFile
public static void closeLogFile()
throws java.io.IOException
closeOnExit
protected boolean closeOnExit()
True if the port should be automatically closed on exit.
(If so, it will be registered by WriterManager.
echo
public void echo(char[] buf,
int off,
int len)
throws java.io.IOException
endLogicalBlock
public void endLogicalBlock(String suffix)
errDefault
public static OutPort errDefault()
freshLine
public void freshLine()
getColumnNumber
public int getColumnNumber()
isWordChar
protected static final boolean isWordChar(char ch)
openFile
public static OutPort openFile(Object fname)
throws java.io.IOException
outDefault
public static OutPort outDefault()
print
public void print(Object v)
print
public void print(String v)
print
public void print(double v)
print
public void print(float v)
print
public void print(int v)
print
public void print(long v)
runCleanups
public static void runCleanups()
setColumnNumber
public void setColumnNumber(int column)
setErrDefault
public static void setErrDefault(OutPort e)
setIndentation
public void setIndentation(int amount,
boolean current)
setLogFile
public static void setLogFile(String name)
throws java.io.IOException
setOutDefault
public static void setOutDefault(OutPort o)
startLogicalBlock
public void startLogicalBlock(String prefix,
String suffix,
int indent)
startLogicalBlock
public void startLogicalBlock(String prefix,
boolean perLine,
String suffix)
writeBreak
public void writeBreak(int kind)
writeBreakFill
public void writeBreakFill()
writeBreakLinear
public void writeBreakLinear()
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()
Write a new-line if needed, space otherwise.
writeSpaceLinear
public void writeSpaceLinear()
writeWordEnd
public void writeWordEnd()
writeWordStart
public void writeWordStart()
Maybe write a word-separating space.
Specifically, write a space if the previous output
was
writeWordEnd()
. Otherwise, do nothing.