Package ej.wasi
Enum FileType
- java.lang.Object
-
- java.lang.Enum<FileType>
-
- ej.wasi.FileType
-
- All Implemented Interfaces:
Serializable,Comparable<FileType>
public enum FileType extends Enum<FileType>
The type of a file descriptor or file.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK_DEVIVEThe file descriptor or file refers to a block device inode.CHARACTER_DEVICEThe file descriptor or file refers to a character device inode.DITECTORYThe file descriptor or file refers to a directory inode.REGULAR_FILEThe file descriptor or file refers to a regular file inode.SOCKET_DGRAMThe file descriptor or file refers to a datagram socket.SOCKET_STREAMThe file descriptor or file refers to a byte-stream socket.SYMBOLIC_LINKThe file refers to a symbolic link inode.UNKNOWNThe type of the file descriptor or file is unknown or is different from any of the other types specified.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileTypevalueOf(String name)Returns the enum constant of this type with the specified name.static FileType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final FileType UNKNOWN
The type of the file descriptor or file is unknown or is different from any of the other types specified.
-
BLOCK_DEVIVE
public static final FileType BLOCK_DEVIVE
The file descriptor or file refers to a block device inode.
-
CHARACTER_DEVICE
public static final FileType CHARACTER_DEVICE
The file descriptor or file refers to a character device inode.
-
DITECTORY
public static final FileType DITECTORY
The file descriptor or file refers to a directory inode.
-
REGULAR_FILE
public static final FileType REGULAR_FILE
The file descriptor or file refers to a regular file inode.
-
SOCKET_DGRAM
public static final FileType SOCKET_DGRAM
The file descriptor or file refers to a datagram socket.
-
SOCKET_STREAM
public static final FileType SOCKET_STREAM
The file descriptor or file refers to a byte-stream socket.
-
SYMBOLIC_LINK
public static final FileType SYMBOLIC_LINK
The file refers to a symbolic link inode.
-
-
Method Detail
-
values
public static FileType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FileType c : FileType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-