|
|||||||||
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 | |
---|---|
static ThreadLocation |
errLocation
|
protected int |
index
An index into the WriterManager's internal table. |
AbstractFormat |
objectFormat
|
static ThreadLocation |
outLocation
|
protected int |
prev
|
boolean |
printReadable
|
protected static int |
WORD
|
Fields inherited from class java.io.PrintWriter |
---|
out |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
OutPort(java.io.OutputStream out)
|
|
OutPort(java.io.OutputStream out,
java.lang.String name)
|
|
OutPort(java.io.Writer out)
|
|
OutPort(java.io.Writer base,
boolean printPretty,
boolean autoflush)
|
|
OutPort(java.io.Writer base,
boolean printPretty,
boolean autoflush,
java.lang.String name)
|
|
OutPort(java.io.Writer base,
boolean autoflush,
java.lang.String name)
|
|
OutPort(java.io.Writer base,
java.lang.String name)
|
Method Summary | |
---|---|
void |
beginAttribute(java.lang.String attrName,
java.lang.Object attrType)
Write a attribute for the current group. |
void |
beginGroup(java.lang.String typeName,
java.lang.Object type)
|
void |
clearBuffer()
|
void |
close()
|
static void |
closeLogFile()
|
void |
echo(char[] buf,
int off,
int len)
|
void |
endAttribute()
No more attributes in this group. |
void |
endGroup(java.lang.String typeName)
|
void |
endLogicalBlock(java.lang.String suffix)
|
static OutPort |
errDefault()
|
void |
freshLine()
|
int |
getColumnNumber()
|
protected static boolean |
isWordChar(char ch)
|
static OutPort |
openFile(java.lang.String fname)
|
static OutPort |
outDefault()
|
void |
print(char v)
|
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.io.PrintWriter ps)
|
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 |
startLogicalBlock(java.lang.String prefix,
boolean perLine,
java.lang.String suffix)
|
void |
startLogicalBlock(java.lang.String prefix,
java.lang.String suffix,
int indent)
|
void |
write(char[] buffer,
int start,
int count)
|
void |
write(int c)
|
void |
write(java.lang.String v)
|
void |
writeBreak(int kind)
|
void |
writeBreakFill()
|
void |
writeBreakLinear()
Write a new-line iff the containing section cannot be printed on one line. |
void |
writeChar(int i)
Write a character value to a byte-stream. |
void |
writeSpaceFill()
Write a new-line if needed, space otherwise. |
void |
writeSpaceLinear()
|
Methods inherited from class gnu.lists.PrintConsumer |
---|
append, append, append, beginDocument, endDocument, ignoring, startNumber, writeBoolean, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeObject |
Methods inherited from class java.io.PrintWriter |
---|
checkError, flush, format, format, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int index
public boolean printReadable
public static final ThreadLocation outLocation
public static final ThreadLocation errLocation
protected static final int WORD
protected int prev
public AbstractFormat objectFormat
Constructor Detail |
---|
public OutPort(java.io.Writer base, boolean printPretty, boolean autoflush)
public OutPort(java.io.Writer base, boolean printPretty, boolean autoflush, java.lang.String name)
public OutPort(java.io.OutputStream out)
public OutPort(java.io.OutputStream out, java.lang.String name)
public OutPort(java.io.Writer out)
public OutPort(java.io.Writer base, java.lang.String name)
public OutPort(java.io.Writer base, boolean autoflush, java.lang.String name)
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.String fname) throws java.io.UnsupportedEncodingException, java.io.FileNotFoundException
java.io.UnsupportedEncodingException
java.io.FileNotFoundException
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 write(int c)
write
in class java.io.PrintWriter
public void write(char[] buffer, int start, int count)
write
in interface Consumer
write
in class java.io.PrintWriter
public void write(java.lang.String v)
write
in class java.io.PrintWriter
public void writeChar(int i)
writeChar
in interface Consumer
writeChar
in class PrintConsumer
public void print(char v)
print
in class java.io.PrintWriter
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(java.io.PrintWriter ps)
print
in interface Printable
public void beginGroup(java.lang.String typeName, java.lang.Object type)
beginGroup
in interface Consumer
beginGroup
in class PrintConsumer
public void endGroup(java.lang.String typeName)
endGroup
in interface Consumer
endGroup
in class PrintConsumer
public void beginAttribute(java.lang.String attrName, java.lang.Object attrType)
beginAttribute
in interface Consumer
beginAttribute
in class PrintConsumer
public void endAttribute()
endAttribute
in interface Consumer
endAttribute
in class PrintConsumer
public void freshLine()
public int getColumnNumber()
public void setColumnNumber(int column)
public void clearBuffer()
public void close()
close
in interface java.io.Closeable
close
in class java.io.PrintWriter
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 |