|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.render.ps.fonts.PSTTFGenerator
public class PSTTFGenerator
This is a wrapper for PSGenerator that contains some members specific for streaming
TrueType fonts to a PostScript document.
| Field Summary | |
|---|---|
static int |
MAX_BUFFER_SIZE
The buffer is used to store the font file in an array of hex-encoded strings. |
| Constructor Summary | |
|---|---|
PSTTFGenerator(org.apache.xmlgraphics.ps.PSGenerator gen)
Creates a new instance wrapping the given generator. |
|
| Method Summary | |
|---|---|
void |
endString()
Finishes writing a string by appending '00' and '>' to the end. |
void |
startString()
Writes the '<' character that starts a string. |
void |
streamBytes(byte[] byteArray,
int offset,
int length)
Writes bytes from the given byte array to the output. |
void |
write(java.lang.String cmd)
Writes the given string to the output. |
void |
writeln(java.lang.String cmd)
Writes the given string to the output, followed by a newline. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_BUFFER_SIZE
| Constructor Detail |
|---|
public PSTTFGenerator(org.apache.xmlgraphics.ps.PSGenerator gen)
gen - the PSGenerator to wrap| Method Detail |
|---|
public void startString()
throws java.io.IOException
java.io.IOException
public void write(java.lang.String cmd)
throws java.io.IOException
cmd - a string
java.io.IOException
public void writeln(java.lang.String cmd)
throws java.io.IOException
cmd - a string
java.io.IOException
public void streamBytes(byte[] byteArray,
int offset,
int length)
throws java.io.IOException
byteArray - byte[] a byte arrayoffset - the position in the byte array where the streaming must startlength - the number of bytes to stream. This MUST be less than
MAX_BUFFER_SIZE - 1 since strings are suffixed by '00' (see Section 4.2 of
Adobe Technical Note #5012, The Type 42 Font Format Specification.).
java.io.IOException
public void endString()
throws java.io.IOException
java.io.IOException
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||