public enum FileWriteType extends Enum<FileWriteType>
| Enum Constant and Description |
|---|
APPEND
追加
|
APPEND_NEWLINE
追加且换行
|
ONCE
只写一次, 若文件存在则继续
|
OVERWRITE
覆写
|
| Modifier and Type | Method and Description |
|---|---|
static FileWriteType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileWriteType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileWriteType ONCE
public static final FileWriteType OVERWRITE
public static final FileWriteType APPEND
public static final FileWriteType APPEND_NEWLINE
public static FileWriteType[] values()
for (FileWriteType c : FileWriteType.values()) System.out.println(c);
public static FileWriteType 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 © 2023. All rights reserved.