public enum EmptyAsset extends Enum<EmptyAsset> implements Asset
Asset
having empty content.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
byte[] |
getSource()
Returns the underlying content.
|
InputStream |
openStream()
Get a input stream for the resource content.
|
String |
toString() |
static EmptyAsset |
valueOf(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic InputStream openStream()
Asset
openStream
in interface Asset
InputStream
for each callAsset.openStream()
public byte[] getSource()
public String toString()
toString
in class Enum<EmptyAsset>
Object.toString()
Copyright © 2016 JBoss by Red Hat. All rights reserved.