@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Engine.Source.ForFolder extends 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.Compound, Plugin.Engine.Source.Element, Plugin.Engine.Source.Empty, Plugin.Engine.Source.Filtering, Plugin.Engine.Source.ForFolder, Plugin.Engine.Source.ForJarFile, Plugin.Engine.Source.InMemory, Plugin.Engine.Source.Origin
Plugin.Engine.Source.Origin.Filtering, Plugin.Engine.Source.Origin.ForJarFile
NO_MANIFEST
Constructor and Description |
---|
ForFolder(File folder)
Creates a new source representation for a given folder.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
Manifest |
getManifest()
Returns the manifest file of the source location or
null if no manifest exists. |
Iterator<Plugin.Engine.Source.Element> |
iterator() |
Plugin.Engine.Source.Origin |
read()
Initializes a reading from this source.
|
ClassFileLocator |
toClassFileLocator(ClassFileVersion classFileVersion)
Creates a class file locator for the represented source.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ForFolder(File folder)
folder
- The folder to represent.public Plugin.Engine.Source.Origin read()
read
in interface Plugin.Engine.Source
public ClassFileLocator toClassFileLocator(@MaybeNull ClassFileVersion classFileVersion) throws IOException
toClassFileLocator
in interface Plugin.Engine.Source.Origin
classFileVersion
- 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.@MaybeNull public Manifest getManifest() throws IOException
null
if no manifest exists.getManifest
in interface Plugin.Engine.Source.Origin
null
.IOException
- If an I/O error occurs.public Iterator<Plugin.Engine.Source.Element> iterator()
iterator
in interface Iterable<Plugin.Engine.Source.Element>
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2014–2025. All rights reserved.