Class CMapManager


  • final class CMapManager
    extends java.lang.Object
    CMap resource loader and cache.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.Map<java.lang.String,​CMap> CMAP_CACHE  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CMapManager()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static CMap getPredefinedCMap​(java.lang.String cMapName)
      Fetches the predefined CMap from disk (or cache).
      static CMap parseCMap​(java.io.InputStream cMapStream)
      Parse the given CMap.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CMAP_CACHE

        private static final java.util.Map<java.lang.String,​CMap> CMAP_CACHE
    • Constructor Detail

      • CMapManager

        private CMapManager()
    • Method Detail

      • getPredefinedCMap

        public static CMap getPredefinedCMap​(java.lang.String cMapName)
                                      throws java.io.IOException
        Fetches the predefined CMap from disk (or cache).
        Parameters:
        cMapName - CMap name
        Returns:
        The predefined CMap, never null.
        Throws:
        java.io.IOException
      • parseCMap

        public static CMap parseCMap​(java.io.InputStream cMapStream)
                              throws java.io.IOException
        Parse the given CMap.
        Parameters:
        cMapStream - the CMap to be read
        Returns:
        the parsed CMap
        Throws:
        java.io.IOException