|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Writer
java.io.PrintWriter
org.extex.font.format.pl.PlWriter
public class PlWriter
Writer for the PL-Format.
see TFtoPL
| Field Summary |
|---|
| Fields inherited from class java.io.PrintWriter |
|---|
out |
| Fields inherited from class java.io.Writer |
|---|
lock |
| Constructor Summary | |
|---|---|
PlWriter(java.io.OutputStream out)
Create a new PlWriter, without automatic line flushing, from an existing OutputStream. |
|
PlWriter(java.io.OutputStream out,
boolean autoFlush)
Create a new PlWriter from an existing OutputStream. |
|
PlWriter(java.io.Writer out,
boolean autoFlush)
Create a new PlWriter. |
|
| Method Summary | |
|---|---|
PlWriter |
addBool(boolean b)
Prints a symbolic form of boolean value. |
PlWriter |
addChar(short c)
Prints symbolic representation of character code. |
PlWriter |
addCharMetric(double val,
java.lang.String name)
Add a char metric. |
PlWriter |
addComment(java.lang.String s)
Add a comment. |
PlWriter |
addDec(int i)
Prints D prefix and decimal number. |
PlWriter |
addFace(int face)
Prints F prefix and Xerox face code. |
PlWriter |
addFixWord(TfmFixWord fw,
java.lang.String name)
Add a Fixword. |
PlWriter |
addOct(int i)
Prints O prefix and octal number. |
PlWriter |
addReal(double d)
Prints R prefix and real number. |
PlWriter |
addReal(java.lang.Object o)
Prints R prefix and real number. |
PlWriter |
addStr(java.lang.String s)
Prints a character string after one space. |
void |
close()
Finishes all possibly unclosed property lists and closes the output. |
void |
forceNumChars()
Print always character in numerical (octal) format. |
PlWriter |
out(char c)
Write a character. |
PlWriter |
out(java.lang.String s)
Write a String. |
PlWriter |
plclose()
Decreases nesting level and prints right parenthesis. |
PlWriter |
plopen(java.lang.String s)
Increases nesting level and prints left parenthesis followed by the property name. |
void |
printZeroWidth(boolean pzw)
Print a zero fixpointwidth. |
| Methods inherited from class java.io.PrintWriter |
|---|
append, append, append, checkError, clearError, flush, format, format, print, print, print, print, print, print, 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 |
| Constructor Detail |
|---|
public PlWriter(java.io.OutputStream out)
out - An output streamOutputStreamWriter.OutputStreamWriter(java.io.OutputStream)
public PlWriter(java.io.OutputStream out,
boolean autoFlush)
out - An output streamautoFlush - A boolean; if true, the println() methods will flush the
output bufferOutputStreamWriter.OutputStreamWriter(java.io.OutputStream)
public PlWriter(java.io.Writer out,
boolean autoFlush)
out - A character-output streamautoFlush - A boolean; if true, the println() methods will flush the
output buffer| Method Detail |
|---|
public PlWriter addBool(boolean b)
b - the boolean value to be printed.
public PlWriter addChar(short c)
octChars is
false then it prints C prefix folowed by
the character. Otherwise it prints the octal representation (with
O prefix).
c - the character code to be printed.
public PlWriter addCharMetric(double val,
java.lang.String name)
val - the double value.name - the name
public PlWriter addComment(java.lang.String s)
s - the string
public PlWriter addDec(int i)
D prefix and decimal number.
i - the number to be printed.
public PlWriter addFace(int face)
F prefix and Xerox face code. The code is printed
in the three character slope/weight/expansion form or in octal if the
symbolic form cannot be found.
face - the Xerox face code to be printed.
public PlWriter addFixWord(TfmFixWord fw,
java.lang.String name)
fw - the TFmFixWordname - the name
public PlWriter addOct(int i)
O prefix and octal number.
i - the number to be printed.
public PlWriter addReal(double d)
R prefix and real number.
d - the real number.
public PlWriter addReal(java.lang.Object o)
R prefix and real number.
o - the object which represents the real number.
public PlWriter addStr(java.lang.String s)
s - the string to be printed.
public void close()
close in interface java.io.Closeableclose in class java.io.PrintWriterpublic void forceNumChars()
public PlWriter out(char c)
c - the char
public PlWriter out(java.lang.String s)
s - the string
public PlWriter plclose()
public PlWriter plopen(java.lang.String s)
s - the property name.
public void printZeroWidth(boolean pzw)
pzw - print or not
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||