@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Engine.Source.Element.ForJarEntry 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 |
---|
ForJarEntry(JarFile file,
JarEntry entry)
Creates a new element representation for a jar file entry.
|
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.Element
public InputStream getInputStream() throws IOException
getInputStream
in interface Plugin.Engine.Source.Element
IOException
- If an I/O error occurs.public <T> T resolveAs(Class<T> type)
resolveAs
in interface Plugin.Engine.Source.Element
T
- The requested spezialized type.type
- The requested spezialized type.null
if a transformation is impossible.Copyright © 2014–2018. All rights reserved.