public enum EmptyAsset extends java.lang.Enum<EmptyAsset> implements Asset
Asset
having empty content.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
(package private) byte[] |
content
Empty contents
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getSource()
Returns the underlying content.
|
java.io.InputStream |
openStream()
Get a input stream for the resource content.
|
java.lang.String |
toString() |
static EmptyAsset |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EmptyAsset[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EmptyAsset INSTANCE
public static EmptyAsset[] values()
for (EmptyAsset c : EmptyAsset.values()) System.out.println(c);
public static EmptyAsset valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.io.InputStream openStream()
Asset
openStream
in interface Asset
InputStream
for each callAsset.openStream()
public byte[] getSource()
public java.lang.String toString()
toString
in class java.lang.Enum<EmptyAsset>
Object.toString()