public enum OpenFileMode extends Enum<OpenFileMode> implements UaEnumeration
Enum Constant and Description |
---|
Append |
EraseExisting |
Read |
Write |
Modifier and Type | Method and Description |
---|---|
static OpenFileMode |
decode(UaDecoder decoder) |
static void |
encode(OpenFileMode openFileMode,
UaEncoder encoder) |
static OpenFileMode |
from(Integer value) |
int |
getValue() |
static OpenFileMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OpenFileMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpenFileMode Read
public static final OpenFileMode Write
public static final OpenFileMode EraseExisting
public static final OpenFileMode Append
public static OpenFileMode[] values()
for (OpenFileMode c : OpenFileMode.values()) System.out.println(c);
public static OpenFileMode 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 int getValue()
getValue
in interface UaEnumeration
public static OpenFileMode from(Integer value)
public static void encode(OpenFileMode openFileMode, UaEncoder encoder)
public static OpenFileMode decode(UaDecoder decoder)
Copyright © 2020. All rights reserved.