Package ej.wasi

Enum FileType

    • 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 name
        NullPointerException - if the argument is null