public static enum SnuggleInput.InputType extends Enum<SnuggleInput.InputType>
| Enum Constant and Description |
|---|
FILE
Input is read from a File using either a specified encoding or the platform default encoding
|
INPUT_STREAM
Input is read from an
InputStream using either a specified encoding or the platform default encoding |
READER
Input is read from a
Reader |
STRING
Input is read from a String
|
| Modifier and Type | Method and Description |
|---|---|
static SnuggleInput.InputType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SnuggleInput.InputType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SnuggleInput.InputType STRING
public static final SnuggleInput.InputType FILE
public static final SnuggleInput.InputType INPUT_STREAM
InputStream using either a specified encoding or the platform default encodingpublic static final SnuggleInput.InputType READER
Readerpublic static SnuggleInput.InputType[] values()
for (SnuggleInput.InputType c : SnuggleInput.InputType.values()) System.out.println(c);
public static SnuggleInput.InputType 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 nullCopyright © 2008–2026 The University of Edinburgh. All rights reserved.