public class CMapParser extends Object
Constructor and Description |
---|
CMapParser()
Creates a new instance of CMapParser.
|
Modifier and Type | Method and Description |
---|---|
protected InputStream |
getExternalCMap(String name)
Returns an input stream containing the given "use" CMap.
|
CMap |
parse(File file)
Parse a CMAP file on the file system.
|
CMap |
parse(InputStream input)
This will parse the stream and create a cmap object.
|
CMap |
parsePredefined(String name)
Parses a predefined CMap.
|
public CMap parse(File file) throws IOException
file
- The file to parse.IOException
- If there is an issue while parsing the CMAP.public CMap parsePredefined(String name) throws IOException
name
- CMap name.IOException
- If the CMap could not be parsed.public CMap parse(InputStream input) throws IOException
input
- The CMAP stream to parse.IOException
- If there is an error parsing the stream.protected InputStream getExternalCMap(String name) throws IOException
name
- Name of the given "use" CMap resource.IOException
- if the CMap resource doesn't exist or if there is an error opening its
stream.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.