org.apache.fontbox.cmap
public class CMapParser extends Object
Version: $Revision: 1.9 $
| Constructor Summary | |
|---|---|
| CMapParser()
Creates a new instance of CMapParser. | |
| Method Summary | |
|---|---|
| static void | main(String[] args)
A simple class to test parsing of cmap files.
|
| CMap | parse(File file)
Parse a CMAP file on the file system.
|
| CMap | parse(String resourceRoot, InputStream input)
This will parse the stream and create a cmap object.
|
Parameters: args Some command line arguments.
Throws: Exception If there is an error parsing the file.
Parameters: file The file to parse.
Returns: A parsed CMAP file.
Throws: IOException If there is an issue while parsing the CMAP.
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.