Package org.apache.fop.fonts.type1
Class PFBParser
- java.lang.Object
-
- org.apache.fop.fonts.type1.PFBParser
-
public class PFBParser extends java.lang.ObjectThis class represents a parser for Adobe Type 1 PFB files.- See Also:
PFBData
-
-
Field Summary
Fields Modifier and Type Field Description private static byte[]CLEARTOMARKprivate static byte[]CURRENTFILE_EEXEC
-
Constructor Summary
Constructors Constructor Description PFBParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static booleanbyteCmp(byte[] src, int srcOffset, byte[] cmp)private voidcalcLengths(PFBData pfb, byte[] originalData)private voidparsePCFormat(PFBData pfb, java.io.DataInputStream din)PFBDataparsePFB(java.io.InputStream in)Parses a PFB file into a PFBData object.private voidparseRAWFormat(PFBData pfb, java.io.BufferedInputStream bin)private static intswapInteger(int value)
-
-
-
Method Detail
-
parsePFB
public PFBData parsePFB(java.io.InputStream in) throws java.io.IOException
Parses a PFB file into a PFBData object.- Parameters:
in- InputStream to load the PFB file from- Returns:
- PFBData memory representation of the font
- Throws:
java.io.IOException- In case of an I/O problem
-
swapInteger
private static int swapInteger(int value)
-
parsePCFormat
private void parsePCFormat(PFBData pfb, java.io.DataInputStream din) throws java.io.IOException
- Throws:
java.io.IOException
-
byteCmp
private static boolean byteCmp(byte[] src, int srcOffset, byte[] cmp)
-
calcLengths
private void calcLengths(PFBData pfb, byte[] originalData)
-
parseRAWFormat
private void parseRAWFormat(PFBData pfb, java.io.BufferedInputStream bin) throws java.io.IOException
- Throws:
java.io.IOException
-
-