|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qedeq.base.io.AbstractOutput
public abstract class AbstractOutput
Wraps a text output stream.
Constructor Summary | |
---|---|
AbstractOutput()
Constructor. |
Method Summary | |
---|---|
void |
addToken(java.lang.String part)
Append token to output. |
void |
addWs(java.lang.String ws)
Add whitespace to output. |
abstract void |
append(java.lang.String text)
Append text directly to output device. |
void |
clearLevel()
Reset tab level to zero. |
int |
columnsLeft()
How many columns have we left? |
void |
flush()
Flush output. |
int |
getColumns()
Return number of maximum columns. |
java.lang.String |
getLevel()
Return current tab string. |
abstract long |
getPosition()
Get writing position. |
void |
popLevel()
Decrement tab level. |
void |
popLevel(int characters)
Decrement tab level. |
void |
print(char c)
Print character to output. |
void |
print(java.lang.Object object)
Print object to output. |
void |
print(java.lang.String text)
Print text and split at white space if text doesn't fit within maximum column size. |
void |
println()
Print new line to output. |
void |
println(java.lang.Object object)
Print object and new line to output. |
void |
println(java.lang.String token)
Print spaces text and new line to output. |
void |
printWithoutSplit(java.lang.String text)
Print spaces and text to output. |
void |
pushLevel()
Increment tab level (this are two spaces). |
void |
pushLevel(java.lang.String symbols)
Increment tab level with following symbols. |
void |
setColumns(int columns)
Set number of maximum columns. |
void |
setLevel(java.lang.String level)
Set current tab string. |
void |
setTabLevel()
Set current tab level to current level. |
void |
skipToColumn(int column)
Skip until given column. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractOutput()
Method Detail |
---|
public void addWs(java.lang.String ws)
ws
- Add this whitespace.public void addToken(java.lang.String part)
part
- Add this part.public void flush()
public void print(char c)
c
- Append this.public void print(java.lang.String text)
text
- Append this.public abstract void append(java.lang.String text)
text
- Append this text.public abstract long getPosition()
public void printWithoutSplit(java.lang.String text)
text
- Append this.public int columnsLeft()
public void print(java.lang.Object object)
object
- Append text representation of this.public final void println(java.lang.String token)
token
- Append this.public final void println(java.lang.Object object)
object
- Append text representation of this.public void println()
public void skipToColumn(int column)
column
- Skip to this column.public final void clearLevel()
public final void popLevel()
public final void popLevel(int characters)
characters
- Number of characters to reduce from tab level.public final java.lang.String getLevel()
public final void setLevel(java.lang.String level)
level
- Tab string.public final void pushLevel()
public final void pushLevel(java.lang.String symbols)
symbols
- Symbols to tab width. Length should be exactly 2 characters!public final void setTabLevel()
public void setColumns(int columns)
columns
- Maximum column size.public final int getColumns()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |