|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fonts.type1.PFBData
public class PFBData
Class that represents the contents of a PFB file.
PFBParser
Field Summary | |
---|---|
static int |
PFB_MAC
MAC Format (unsupported, yet) |
static int |
PFB_PC
PC format |
static int |
PFB_RAW
Raw format, no special file structure |
Constructor Summary | |
---|---|
PFBData()
|
Method Summary | |
---|---|
int |
getLength()
Returns the full length of the raw font file. |
int |
getLength1()
Returns the Length1 (length of the header segment). |
int |
getLength2()
Returns the Length2 (length of the encrypted segment). |
int |
getLength3()
Returns the Length3 (length of the trailer segment). |
int |
getPFBFormat()
Returns the format the font was loaded with. |
void |
outputAllParts(java.io.OutputStream out)
Writes the PFB file in raw format to an OutputStream. |
void |
setEncryptedSegment(byte[] encryptedSeg)
Sets the encrypted segment of the font file. |
void |
setHeaderSegment(byte[] headerSeg)
Sets the header segment of the font file. |
void |
setPFBFormat(int format)
Sets the PFB format the font was loaded with. |
void |
setTrailerSegment(byte[] trailerSeg)
Sets the trailer segment of the font file. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PFB_RAW
public static final int PFB_PC
public static final int PFB_MAC
Constructor Detail |
---|
public PFBData()
Method Detail |
---|
public void setPFBFormat(int format)
format
- one of the PFB_* constantspublic int getPFBFormat()
public void setHeaderSegment(byte[] headerSeg)
headerSeg
- the header segmentpublic void setEncryptedSegment(byte[] encryptedSeg)
encryptedSeg
- the encrypted segmentpublic void setTrailerSegment(byte[] trailerSeg)
trailerSeg
- the trailer segmentpublic int getLength()
public int getLength1()
public int getLength2()
public int getLength3()
public void outputAllParts(java.io.OutputStream out) throws java.io.IOException
out
- the OutputStream to write to
java.io.IOException
- In case of an I/O problempublic java.lang.String toString()
toString
in class java.lang.Object
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |