Package org.apache.fontbox.pfb
Class PfbParser
java.lang.Object
org.apache.fontbox.pfb.PfbParser
Parser for a pfb-file.
- Version:
- $Revision: 1.1 $
- Author:
- Ben Litchfield (ben@benlitchfield.com), Michael Niedermair
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the pfb data as stream.int[]
Returns the lengths.byte[]
Returns the pfbdata.int
size()
Returns the size of the pfb-data.
-
Constructor Details
-
PfbParser
Create a new object.- Parameters:
filename
- the file name- Throws:
IOException
- if an IO-error occurs.
-
PfbParser
Create a new object.- Parameters:
in
- The input.- Throws:
IOException
- if an IO-error occurs.
-
-
Method Details
-
getLengths
public int[] getLengths()Returns the lengths.- Returns:
- Returns the lengths.
-
getPfbdata
public byte[] getPfbdata()Returns the pfbdata.- Returns:
- Returns the pfbdata.
-
getInputStream
Returns the pfb data as stream.- Returns:
- Returns the pfb data as stream.
-
size
public int size()Returns the size of the pfb-data.- Returns:
- Returns the size of the pfb-data.
-