org.apache.fontbox.pfb

Class PfbParser

public class PfbParser extends Object

Parser for a pfb-file.

Version: $Revision: 1.1 $

Author: Ben Litchfield (ben@benlitchfield.com) Michael Niedermair

Constructor Summary
PfbParser(String filename)
Create a new object.
PfbParser(InputStream in)
Create a new object.
Method Summary
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(String filename)
Create a new object.

Parameters: filename the file name

Throws: IOException if an IO-error occurs.

PfbParser

public PfbParser(InputStream in)
Create a new object.

Parameters: in The input.

Throws: IOException if an IO-error occurs.

Method Detail

getInputStream

public InputStream getInputStream()
Returns the pfb data as stream.

Returns: Returns the pfb data as stream.

getLengths

public int[] getLengths()
Returns the lengths.

Returns: Returns the lengths.

getPfbdata

public byte[] getPfbdata()
Returns the pfbdata.

Returns: Returns the pfbdata.

size

public int size()
Returns the size of the pfb-data.

Returns: Returns the size of the pfb-data.

Copyright © 2008-2010 Apache Software Foundation. All Rights Reserved.