Class CMapParser


  • public class CMapParser
    extends Object
    Parses a CMap stream.
    • Constructor Detail

      • CMapParser

        public CMapParser()
        Creates a new instance of CMapParser.
    • Method Detail

      • parse

        public CMap parse​(File file)
                   throws IOException
        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.
      • parsePredefined

        public CMap parsePredefined​(String name)
                             throws IOException
        Parses a predefined CMap.
        Parameters:
        name - CMap name.
        Throws:
        IOException - If the CMap could not be parsed.
      • parse

        public CMap parse​(InputStream input)
                   throws IOException
        This will parse the stream and create a cmap object.
        Parameters:
        input - The CMAP stream to parse.
        Returns:
        The parsed stream as a java object.
        Throws:
        IOException - If there is an error parsing the stream.