@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Engine.Source.Element.ForByteArray extends java.lang.Object implements Plugin.Engine.Source.Element
Plugin.Engine.Source.Element.ForByteArray, Plugin.Engine.Source.Element.ForFile, Plugin.Engine.Source.Element.ForJarEntry| Modifier and Type | Field and Description |
|---|---|
private byte[] |
binaryRepresentation
The element's binary representation.
|
private java.lang.String |
name
The element's name.
|
| Constructor and Description |
|---|
ForByteArray(java.lang.String name,
byte[] binaryRepresentation)
Creates an element that is represented by a byte array.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getInputStream()
Returns an input stream to read this element's binary information.
|
java.lang.String |
getName()
Returns the element's relative path and name.
|
<T> T |
resolveAs(java.lang.Class<T> type)
Resolves this element to a more specialized form if possible.
|
private final java.lang.String name
private final byte[] binaryRepresentation
public ForByteArray(java.lang.String name,
byte[] binaryRepresentation)
name - The element's name.binaryRepresentation - The element's binary representation.public java.lang.String getName()
getName in interface Plugin.Engine.Source.Elementpublic java.io.InputStream getInputStream()
getInputStream in interface Plugin.Engine.Source.Elementpublic <T> T resolveAs(java.lang.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.