| Modifier and Type | Field and Description |
|---|---|
| private static final HashMap | |
| private static final JarFileFactory | |
| private static final HashMap |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| public void | close(JarFile jarFile)
Implements sun. Callback method of the URLJarFileCloseController to indicate that the JarFile is closed. |
| pack-priv boolean | Returns: true if the jar file has been closed, false otherwise.the jar file URL url, JarFile the jar file to close jarFile)Close the given jar file if it isn't present in the cache. |
| public JarFile | |
| pack-priv JarFile | |
| private JarFile | |
| pack-priv URLConnection | |
| public static JarFileFactory | |
| pack-priv JarFile | Returns: a new or cached jar file.the jar file url url, boolean whether the cache should be used useCaches)Get or create a |
| private URL | |
| private String |
| fileCache | back to summary |
|---|---|
| private static final HashMap<String, JarFile> fileCache | |
| instance | back to summary |
|---|---|
| private static final JarFileFactory instance | |
| urlCache | back to summary |
|---|---|
| private static final HashMap<JarFile, URL> urlCache | |
| JarFileFactory | back to summary |
|---|---|
| private JarFileFactory() | |
| cacheIfAbsent | back to summary |
|---|---|
| pack-priv boolean cacheIfAbsent(URL url, JarFile jarFile) | |
| close | back to summary |
|---|---|
| public void close(JarFile jarFile) Implements sun. Callback method of the URLJarFileCloseController to indicate that the JarFile is closed. This way we can remove the JarFile from the cache | |
| closeIfNotCached | back to summary |
|---|---|
| pack-priv boolean closeIfNotCached(URL url, JarFile jarFile) throws IOException Close the given jar file if it isn't present in the cache. Otherwise, does nothing.
| |
| get | back to summary |
|---|---|
| public JarFile get(URL url) throws IOException | |
| get | back to summary |
|---|---|
| pack-priv JarFile get(URL url, boolean useCaches) throws IOException | |
| getCachedJarFile | back to summary |
|---|---|
| private JarFile getCachedJarFile(URL url) | |
| getConnection | back to summary |
|---|---|
| pack-priv URLConnection getConnection(JarFile jarFile) throws IOException | |
| getInstance | back to summary |
|---|---|
| public static JarFileFactory getInstance() | |
| getOrCreate | back to summary |
|---|---|
| pack-priv JarFile getOrCreate(URL url, boolean useCaches) throws IOException Get or create a
| |
| urlFor | back to summary |
|---|---|
| private URL urlFor(URL url) throws IOException | |
| urlKey | back to summary |
|---|---|
| private String urlKey(URL url) | |