|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer java.io.PrintWriter gnu.lists.PrintConsumer gnu.mapping.OutPort
public class OutPort
An extended PrintWriter.
Field Summary | |
---|---|
protected PrettyWriter |
bout
|
static ThreadLocation |
errLocation
|
AbstractFormat |
objectFormat
|
static ThreadLocation |
outLocation
|
boolean |
printReadable
|
protected java.lang.Object |
unregisterRef
An index into the WriterManager's internal table. |
Fields inherited from class java.io.PrintWriter |
---|
out |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
protected |
OutPort(OutPort out,
boolean autoflush)
|
|
OutPort(java.io.OutputStream out)
|
|
OutPort(java.io.OutputStream out,
Path path)
|
|
OutPort(java.io.Writer out)
|
protected |
OutPort(java.io.Writer out,
boolean autoflush)
|
|
OutPort(java.io.Writer base,
boolean printPretty,
boolean autoflush)
|
|
OutPort(java.io.Writer base,
boolean printPretty,
boolean autoflush,
Path path)
|
|
OutPort(java.io.Writer base,
boolean autoflush,
Path path)
|
|
OutPort(java.io.Writer base,
Path path)
|
protected |
OutPort(java.io.Writer base,
PrettyWriter out,
boolean autoflush)
|
Method Summary | |
---|---|
void |
clearBuffer()
|
void |
close()
|
static void |
closeLogFile()
|
protected boolean |
closeOnExit()
True if the port should be automatically closed on exit. |
void |
closeThis()
Flush and close this local Writer, but not underlying Writers. |
void |
echo(char[] buf,
int off,
int len)
|
void |
endAttribute()
No more attributes in this element. |
void |
endElement()
|
void |
endLogicalBlock(java.lang.String suffix)
|
static OutPort |
errDefault()
|
void |
freshLine()
|
int |
getColumnNumber()
|
protected static boolean |
isWordChar(char ch)
|
static OutPort |
openFile(java.lang.Object fname)
|
static OutPort |
outDefault()
|
void |
print(Consumer out)
|
void |
print(double v)
|
void |
print(float v)
|
void |
print(int v)
|
void |
print(long v)
|
void |
print(java.lang.Object v)
|
void |
print(java.lang.String v)
|
static void |
runCleanups()
|
void |
setColumnNumber(int column)
|
static void |
setErrDefault(OutPort e)
|
void |
setIndentation(int amount,
boolean current)
|
static void |
setLogFile(java.lang.String name)
|
static void |
setOutDefault(OutPort o)
|
void |
startAttribute(java.lang.Object attrType)
Write a attribute for the current element. |
void |
startElement(java.lang.Object type)
|
void |
startLogicalBlock(java.lang.String prefix,
boolean perLine,
java.lang.String suffix)
|
void |
startLogicalBlock(java.lang.String prefix,
java.lang.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. |
Methods inherited from class gnu.lists.PrintConsumer |
---|
append, append, append, endDocument, endNumber, ignoring, startDocument, startNumber, write, writeBoolean, writeDouble, writeFloat, writeInt, writeLong, writeObject |
Methods inherited from class java.io.PrintWriter |
---|
checkError, clearError, flush, format, format, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gnu.lists.Consumer |
---|
write, write, write |
Field Detail |
---|
protected PrettyWriter bout
protected java.lang.Object unregisterRef
public boolean printReadable
public static final ThreadLocation outLocation
public static final ThreadLocation errLocation
public AbstractFormat objectFormat
Constructor Detail |
---|
protected OutPort(java.io.Writer base, PrettyWriter out, boolean autoflush)
protected OutPort(OutPort out, boolean autoflush)
protected OutPort(java.io.Writer out, boolean autoflush)
public OutPort(java.io.Writer base, boolean printPretty, boolean autoflush)
public OutPort(java.io.Writer base, boolean printPretty, boolean autoflush, Path path)
public OutPort(java.io.OutputStream out)
public OutPort(java.io.OutputStream out, Path path)
public OutPort(java.io.Writer out)
public OutPort(java.io.Writer base, Path path)
public OutPort(java.io.Writer base, boolean autoflush, Path path)
Method Detail |
---|
public static OutPort outDefault()
public static void setOutDefault(OutPort o)
public static OutPort errDefault()
public static void setErrDefault(OutPort e)
public static OutPort openFile(java.lang.Object fname) throws java.io.IOException
java.io.IOException
public void echo(char[] buf, int off, int len) throws java.io.IOException
java.io.IOException
public static void closeLogFile() throws java.io.IOException
java.io.IOException
public static void setLogFile(java.lang.String name) throws java.io.IOException
java.io.IOException
protected static final boolean isWordChar(char ch)
public void print(int v)
print
in class java.io.PrintWriter
public void print(long v)
print
in class java.io.PrintWriter
public void print(double v)
print
in class java.io.PrintWriter
public void print(float v)
print
in class java.io.PrintWriter
public void print(java.lang.String v)
print
in class java.io.PrintWriter
public void print(java.lang.Object v)
print
in class java.io.PrintWriter
public void print(Consumer out)
print
in interface Printable
public void startElement(java.lang.Object type)
startElement
in interface Consumer
startElement
in class PrintConsumer
public void endElement()
endElement
in interface Consumer
endElement
in class PrintConsumer
public void startAttribute(java.lang.Object attrType)
startAttribute
in interface Consumer
startAttribute
in class PrintConsumer
public void endAttribute()
endAttribute
in interface Consumer
endAttribute
in class PrintConsumer
public void writeWordEnd()
writeWordStart()
.
public void writeWordStart()
writeWordEnd()
. Otherwise, do nothing.
public void freshLine()
public int getColumnNumber()
public void setColumnNumber(int column)
public void clearBuffer()
public void closeThis()
public void close()
close
in interface java.io.Closeable
close
in class java.io.PrintWriter
protected boolean closeOnExit()
public static void runCleanups()
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 void endLogicalBlock(java.lang.String suffix)
public void writeBreak(int kind)
public void writeSpaceLinear()
public void writeBreakLinear()
public void writeSpaceFill()
public void writeBreakFill()
public void setIndentation(int amount, boolean current)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |