Package VASSAL.tools
Class JarArchive
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
VASSAL.tools.DataArchive
VASSAL.tools.JarArchive
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
FieldsFields inherited from class VASSAL.tools.DataArchive
archive, cachedLocalImages, extensions, ICON_DIR, IMAGE_DIR, imageDir, imageNames, localImages, SOUND_DIR, soundDir, SOUNDS_DIR, soundsDir -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetAbsolutePath(String file)getFileStream(String fileName)Deprecated, for removal: This API element is subject to removal in a future version.getInputStream(String fileName)Get anInputStreamfor the given file in the archive.getName()Returns a URL pointing to the named file.Methods inherited from class VASSAL.tools.DataArchive
addExtension, addImageSource, buildLocalizedDirectoryList, clearScaledImageCache, clearTransformedImageCache, close, contains, findClass, findImage, findImage, getAllLocalImageNames, getAllLocalImageNamesForDirectory, getArchive, getArchiveURL, getBytes, getCachedAudioClip, getCachedImage, getFileStream, getFileStream, getImage, getImage, getImageBounds, getImageInputStream, getImageNames, getImageNameSet, getImageNameSet, getImageNamesRecursively, getImageNamesRecursively, getImagePrefix, getImageSize, getImageURL, getLocalImageNames, getPermissions, getScaledImage, getScaledImage, getTransformedImage, getTransformedImage, getURL, getWriter, improvedScaling, isNameCacheStale, listImageNames, loadClass, removeImageSource, setOfImageNames, unCacheImage, unCacheImageMethods inherited from class java.security.SecureClassLoader
defineClass, defineClassMethods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Field Details
-
prefix
-
-
Constructor Details
-
JarArchive
public JarArchive() -
JarArchive
-
-
Method Details
-
getURL
Description copied from class:DataArchiveReturns a URL pointing to the named file.- Overrides:
getURLin classDataArchive- Parameters:
fileName- the name of the file- Returns:
- a URL corresponding to the file
- Throws:
FileNotFoundException- if the file doesn't existIOException- if some other problem occurs
-
getInputStream
Description copied from class:DataArchiveGet anInputStreamfor the given file in the archive.- Overrides:
getInputStreamin classDataArchive- Parameters:
fileName- the name of the file- Returns:
- an
InputStreamwhich contains the file - Throws:
IOException- if there is a problem reading the fileFileNotFoundException- if the file doesn't exist
-
getAbsolutePath
-
getName
- Overrides:
getNamein classDataArchive
-
getFileStream
@Deprecated(since="2020-08-06", forRemoval=true) public InputStream getFileStream(String fileName) throws IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.UsegetInputStream(String)instead.Description copied from class:DataArchiveGet anInputStreamfor the given filename in the archive.- Overrides:
getFileStreamin classDataArchive- Throws:
IOException
-
getInputStream(String)instead.