Class JarResourceLoader

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.lang.String> entryDirectory
      Maps entries to the parent JAR File (key = the entry *excluding* plain directories, value = the JAR URL).
      static java.lang.String ID  
      private java.util.Map<java.lang.String,​JarHolder> jarFiles
      Maps JAR URLs to the actual JAR (key = the JAR URL, value = the JAR).
      private static org.slf4j.Logger LOGGER  
    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • entryDirectory

        private final java.util.Map<java.lang.String,​java.lang.String> entryDirectory
        Maps entries to the parent JAR File (key = the entry *excluding* plain directories, value = the JAR URL).
      • jarFiles

        private final java.util.Map<java.lang.String,​JarHolder> jarFiles
        Maps JAR URLs to the actual JAR (key = the JAR URL, value = the JAR).
    • Constructor Detail

      • JarResourceLoader

        public JarResourceLoader()
    • Method Detail

      • loadJar

        private void loadJar​(java.lang.String path)
      • closeJar

        private void closeJar​(java.lang.String path)
        Closes a Jar file and set its URLConnection to null.
      • addEntries

        private void addEntries​(java.util.Map<java.lang.String,​java.lang.String> entries)
        Copy all the entries into the entryDirectory. It will overwrite any duplicate keys.