org.apache.fop.fonts.type1

Class AFMParser


public class AFMParser
extends java.lang.Object

Parses the contents of a Type 1 AFM font metrics file into an object structure (AFMFile).

Constructor Summary

AFMParser()
Main constructor.

Method Summary

AFMFile
parse(BufferedReader reader)
Parses an AFM file from a BufferedReader.
AFMFile
parse(File afmFile)
Parses an AFM file from a local file.
AFMFile
parse(InputStream in)
Parses an AFM file from a stream.

Constructor Details

AFMParser

public AFMParser()
Main constructor.

Method Details

parse

public AFMFile parse(BufferedReader reader)
            throws IOException
Parses an AFM file from a BufferedReader.
Parameters:
reader - the BufferedReader instance to read from
Returns:
the parsed AFM file

parse

public AFMFile parse(File afmFile)
            throws IOException
Parses an AFM file from a local file.
Parameters:
afmFile - the AFM file
Returns:
the parsed AFM file

parse

public AFMFile parse(InputStream in)
            throws IOException
Parses an AFM file from a stream.
Parameters:
in - the stream to read from
Returns:
the parsed AFM file

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.