Package org.apache.fontbox.cmap
Class CMapParser
java.lang.Object
org.apache.fontbox.cmap.CMapParser
This will parse a CMap stream.
- Author:
- Ben Litchfield
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CMapParser
public CMapParser()Creates a new instance of CMapParser.
-
-
Method Details
-
parse
Parse a CMAP file on the file system.- Parameters:
file
- The file to parse.- Returns:
- A parsed CMAP file.
- Throws:
IOException
- If there is an issue while parsing the CMAP.
-
parse
This will parse the stream and create a cmap object.- Parameters:
resourceRoot
- The root path to the cmap file. This will be used to find referenced cmap files. It can be null.input
- The CMAP stream to parse.- Returns:
- The parsed stream as a java object.
- Throws:
IOException
- If there is an error parsing the stream.
-
main
A simple class to test parsing of cmap files.- Parameters:
args
- Some command line arguments.- Throws:
Exception
- If there is an error parsing the file.
-