public static class Plugin.Engine.Source.Origin.ForJarFile extends Object implements Plugin.Engine.Source.Origin
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | Plugin.Engine.Source.Origin.ForJarFile.JarFileIteratorAn iterator for jar file entries. | 
Plugin.Engine.Source.Origin.Filtering, Plugin.Engine.Source.Origin.ForJarFileNO_MANIFEST| Constructor and Description | 
|---|
| ForJarFile(JarFile file)Creates a new origin for a jar file. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| Manifest | getManifest()Returns the manifest file of the source location or  nullif no manifest exists. | 
| Iterator<Plugin.Engine.Source.Element> | iterator() | 
| ClassFileLocator | toClassFileLocator(ClassFileVersion classFileVersion)Creates a class file locator for the represented source. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ForJarFile(JarFile file)
file - The represented file.@MaybeNull public Manifest getManifest() throws IOException
null if no manifest exists.getManifest in interface Plugin.Engine.Source.Originnull.IOException - If an I/O error occurs.public ClassFileLocator toClassFileLocator(@MaybeNull ClassFileVersion classFileVersion) throws IOException
toClassFileLocator in interface Plugin.Engine.Source.OriginclassFileVersion - The class file version to consider for multi-release jars or null
                         if multi-release jars should not be considered.IOException - If an I/O exception occurs.public void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic Iterator<Plugin.Engine.Source.Element> iterator()
iterator in interface Iterable<Plugin.Engine.Source.Element>Copyright © 2014–2024. All rights reserved.