public enum StreamType extends java.lang.Enum<StreamType>
| Enum Constant and Description |
|---|
FILE
File streams.
|
NET
Network streams.
|
NONE
Empty dummy.
|
| Modifier and Type | Field and Description |
|---|---|
private ResourceType |
resource
Stores the related resource.
|
private DebugState[] |
states
Stores related debugging states enabling further output for the given
stream types.
|
| Modifier and Type | Method and Description |
|---|---|
static StreamType |
getForURL(java.lang.String protocol)
Returns the stream type for an URL.
|
ResourceType |
getResource()
Returns the related resource.
|
boolean |
matches(DebugState state)
Checks if this type matches the given debugging state.
|
java.lang.String |
toCode()
Returns the code to access this constant.
|
static StreamType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StreamType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StreamType NONE
public static final StreamType NET
public static final StreamType FILE
private ResourceType resource
private DebugState[] states
public static StreamType[] values()
for (StreamType c : StreamType.values()) System.out.println(c);
public static StreamType 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 boolean matches(DebugState state)
state - the state to be testedtrue if the given state is matched by
this constant, false elsepublic ResourceType getResource()
public static final StreamType getForURL(java.lang.String protocol)
protocol - the URL to return the stream type forNONEpublic java.lang.String toCode()