org.fontbox.pfb

Class PfbParser


public class PfbParser
extends java.lang.Object

Parser for a pfb-file.
Version:
$Revision: 1.1 $
Authors:
Ben Litchfield (ben@benlitchfield.com)
Michael Niedermair

Constructor Summary

PfbParser(InputStream in)
Create a new object.
PfbParser(String filename)
Create a new object.

Method Summary

InputStream
getInputStream()
Returns the pfb data as stream.
int[]
getLengths()
Returns the lengths.
byte[]
getPfbdata()
Returns the pfbdata.
int
size()
Returns the size of the pfb-data.

Constructor Details

PfbParser

public PfbParser(InputStream in)
            throws IOException
Create a new object.
Parameters:
in - The input.

PfbParser

public PfbParser(String filename)
            throws IOException
Create a new object.
Parameters:
filename - the file name

Method Details

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.