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