Package org.apache.fontbox.pfb
Class PfbParser
- java.lang.Object
-
- org.apache.fontbox.pfb.PfbParser
-
public class PfbParser extends java.lang.ObjectParser for a pfb-file.- Version:
- $Revision: 1.1 $
- Author:
- Ben Litchfield (ben@benlitchfield.com), Michael Niedermair
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamgetInputStream()Returns the pfb data as stream.int[]getLengths()Returns the lengths.byte[]getPfbdata()Returns the pfbdata.intsize()Returns the size of the pfb-data.
-
-
-
Constructor Detail
-
PfbParser
public PfbParser(java.lang.String filename) throws java.io.IOExceptionCreate a new object.- Parameters:
filename- the file name- Throws:
java.io.IOException- if an IO-error occurs.
-
PfbParser
public PfbParser(java.io.InputStream in) throws java.io.IOExceptionCreate a new object.- Parameters:
in- The input.- Throws:
java.io.IOException- if an IO-error occurs.
-
-
Method Detail
-
getLengths
public int[] getLengths()
Returns the lengths.- Returns:
- Returns the lengths.
-
getPfbdata
public byte[] getPfbdata()
Returns the pfbdata.- Returns:
- Returns the pfbdata.
-
getInputStream
public java.io.InputStream 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.
-
-