public enum EmptyAsset extends Enum<EmptyAsset> implements Asset
Asset
having empty content.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
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
Asset
is to be viewed as a logical path (placeholder/directory) only with no
backing content.openStream
in interface Asset
InputStream
for each call, or null if this type simply represents a logical path
within an Archive
Asset.openStream()
public String toString()
toString
in class Enum<EmptyAsset>
Object.toString()
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.