|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectua.gradsoft.termware.printers.AbstractPrinter
public abstract class AbstractPrinter
abstract class for custom term output.
IPrinterFactory| Field Summary | |
|---|---|
protected PrintWriter |
out_
|
protected String |
outTag_
|
static String |
WS
whitespace. |
| Constructor Summary | |
|---|---|
protected |
AbstractPrinter(PrintWriter out,
String outTag)
create AbstractPrinter |
| Method Summary | |
|---|---|
PrintWriter |
getOut()
get output PrinWriter |
String |
getTag()
get tag of output stream |
void |
printWs(int n)
print whitespace n times |
abstract void |
writeTerm(Term t)
write term |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ua.gradsoft.termware.IPrinter |
|---|
flush |
| Field Detail |
|---|
public static final String WS
protected PrintWriter out_
protected String outTag_
| Constructor Detail |
|---|
protected AbstractPrinter(PrintWriter out,
String outTag)
out - - output stream.outTag - - tag of output, usially - filename of output file.| Method Detail |
|---|
public abstract void writeTerm(Term t)
throws TermWareException
writeTerm in interface IPrinterTermWareExceptionpublic final PrintWriter getOut()
public final String getTag()
public final void printWs(int n)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||