@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Engine.Source.ForJarFile extends Object implements Plugin.Engine.Source
Modifier and Type | Class and Description |
---|---|
protected class |
Plugin.Engine.Source.ForJarFile.JarEntryIterator
An iterator that represents all entries of a jar file.
|
Plugin.Engine.Source.Element, Plugin.Engine.Source.Empty, Plugin.Engine.Source.ForFolder, Plugin.Engine.Source.ForJarFile, Plugin.Engine.Source.InMemory
NO_MANIFEST
Constructor and Description |
---|
ForJarFile(File file)
Creates a new source for a jar file.
|
ForJarFile(JarFile file)
Creates a new source for a jar file.
|
Modifier and Type | Method and Description |
---|---|
ClassFileLocator |
getClassFileLocator()
Returns a class file locator for the represented source.
|
Manifest |
getManifest()
Returns the manifest file of the source location or
null if no manifest exists. |
Iterator<Plugin.Engine.Source.Element> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ForJarFile(File file) throws IOException
file
- The jar file being represented by this source.IOException
- If an I/O error occurs.public ForJarFile(JarFile file)
file
- The jar file being represented by this source.public ClassFileLocator getClassFileLocator()
getClassFileLocator
in interface Plugin.Engine.Source
public Manifest getManifest() throws IOException
null
if no manifest exists.getManifest
in interface Plugin.Engine.Source
null
.IOException
- If an I/O error occurs.public Iterator<Plugin.Engine.Source.Element> iterator()
iterator
in interface Iterable<Plugin.Engine.Source.Element>
Copyright © 2014–2018. All rights reserved.