|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<RecordFormat>
org.neociclo.odetteftp.protocol.RecordFormat
public enum RecordFormat
Enum Constant Summary | |
---|---|
FIXED
Each record in the file has the same length. |
|
TEXTFILE
A Text File is defined as a sequence of ASCII characters, containing no control characters except CR/LF which delimits lines. |
|
UNSTRUCTURED
The file contains a stream of data. |
|
VARIABLE
The records in the file can have different lengths. |
Method Summary | |
---|---|
String |
getCode()
|
static RecordFormat |
parse(String code)
Convenient method for parsing the proper RecordFormat enum given a code character. |
static RecordFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static RecordFormat[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final RecordFormat FIXED
public static final RecordFormat TEXTFILE
public static final RecordFormat UNSTRUCTURED
public static final RecordFormat VARIABLE
Method Detail |
---|
public static RecordFormat[] values()
for (RecordFormat c : RecordFormat.values()) System.out.println(c);
public static RecordFormat valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static RecordFormat parse(String code)
code
- The record format being evaluated
IllegalArgumentException
- Record Format not recognisedpublic String getCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |