@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Engine.Source.Element.ForFile extends Object implements Plugin.Engine.Source.Element
Plugin.Engine.Source.Element.ForByteArray, Plugin.Engine.Source.Element.ForFile, Plugin.Engine.Source.Element.ForJarEntry| Constructor and Description | 
|---|
| ForFile(File root,
       File file)Creates an element representation for a file. | 
| Modifier and Type | Method and Description | 
|---|---|
| InputStream | getInputStream()Returns an input stream to read this element's binary information. | 
| String | getName()Returns the element's relative path and name. | 
| <T> T | resolveAs(Class<T> type)Resolves this element to a more specialized form if possible. | 
public String getName()
getName in interface Plugin.Engine.Source.Elementpublic InputStream getInputStream() throws IOException
getInputStream in interface Plugin.Engine.Source.ElementIOException - If an I/O error occurs.@MaybeNull public <T> T resolveAs(Class<T> type)
resolveAs in interface Plugin.Engine.Source.ElementT - The requested spezialized type.type - The requested spezialized type.null if a transformation is impossible.Copyright © 2014–2023. All rights reserved.