public enum FileTypeOpenMode extends Enum<FileTypeOpenMode>
| Enum Constant and Description |
|---|
Append |
EraseExisting |
Read |
Write |
| Modifier and Type | Method and Description |
|---|---|
static EnumSet<FileTypeOpenMode> |
getSet(int bitset)
Get the enumeration set corresponding to the bitset value used to deliver the mode value.
|
static EnumSet<FileTypeOpenMode> |
getSet(UnsignedByte mask)
Get the enumeration set corresponding to the bitset value used to deliver the mode value.
|
UnsignedByte |
getValue()
The value of the mode.
|
static UnsignedByte |
getValue(EnumSet<FileTypeOpenMode> modes)
Get the bitset value corresponding to the modes.
|
static UnsignedByte |
getValue(FileTypeOpenMode... mode)
Get the bitset value corresponding to the modes.
|
static FileTypeOpenMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileTypeOpenMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileTypeOpenMode Append
public static final FileTypeOpenMode EraseExisting
public static final FileTypeOpenMode Read
public static final FileTypeOpenMode Write
public static FileTypeOpenMode[] values()
for (FileTypeOpenMode c : FileTypeOpenMode.values()) System.out.println(c);
public static FileTypeOpenMode 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 static EnumSet<FileTypeOpenMode> getSet(int bitset)
bitset - the bitset valuepublic static EnumSet<FileTypeOpenMode> getSet(UnsignedByte mask)
bitset - the bitset valuepublic static UnsignedByte getValue(EnumSet<FileTypeOpenMode> modes)
modes - the open mode(s)public static UnsignedByte getValue(FileTypeOpenMode... mode)
mode - the open mode(s)public UnsignedByte getValue()
Copyright © 2026. All rights reserved.