@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Engine.Source.ForFolder extends java.lang.Object implements Plugin.Engine.Source, Plugin.Engine.Source.Origin
| Modifier and Type | Class and Description |
|---|---|
protected class |
Plugin.Engine.Source.ForFolder.FolderIterator
An iterator that exposes all files within a folder structure as elements.
|
Plugin.Engine.Source.Element, Plugin.Engine.Source.Empty, Plugin.Engine.Source.ForFolder, Plugin.Engine.Source.ForJarFile, Plugin.Engine.Source.InMemory, Plugin.Engine.Source.OriginPlugin.Engine.Source.Origin.ForJarFile| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
folder
The folder to represent.
|
NO_MANIFEST| Constructor and Description |
|---|
ForFolder(java.io.File folder)
Creates a new source representation for a given folder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ClassFileLocator |
getClassFileLocator()
Returns a class file locator for the represented source.
|
java.util.jar.Manifest |
getManifest()
Returns the manifest file of the source location or
null if no manifest exists. |
java.util.Iterator<Plugin.Engine.Source.Element> |
iterator() |
Plugin.Engine.Source.Origin |
read()
Initializes a reading from this source.
|
public ForFolder(java.io.File folder)
folder - The folder to represent.public Plugin.Engine.Source.Origin read()
read in interface Plugin.Engine.Sourcepublic ClassFileLocator getClassFileLocator()
getClassFileLocator in interface Plugin.Engine.Source.Originpublic java.util.jar.Manifest getManifest()
throws java.io.IOException
null if no manifest exists.getManifest in interface Plugin.Engine.Source.Originnull.java.io.IOException - If an I/O error occurs.public java.util.Iterator<Plugin.Engine.Source.Element> iterator()
iterator in interface java.lang.Iterable<Plugin.Engine.Source.Element>public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseable