public class CMapParser extends Object
| Constructor and Description |
|---|
CMapParser()
Creates a new instance of CMapParser.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public CMap parse(File file) throws IOException
file - The file to parse.IOException - If there is an issue while parsing the CMAP.public CMap parse(String resourceRoot, InputStream input) throws IOException
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.IOException - If there is an error parsing the stream.Copyright © 2008–2018 The Apache Software Foundation. All rights reserved.