Package ej.wasi

Enum FileType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<FileType>

    public enum FileType
    extends java.lang.Enum<FileType>
    The type of a file descriptor or file.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BLOCK_DEVIVE
      The file descriptor or file refers to a block device inode.
      CHARACTER_DEVICE
      The file descriptor or file refers to a character device inode.
      DITECTORY
      The file descriptor or file refers to a directory inode.
      REGULAR_FILE
      The file descriptor or file refers to a regular file inode.
      SOCKET_DGRAM
      The file descriptor or file refers to a datagram socket.
      SOCKET_STREAM
      The file descriptor or file refers to a byte-stream socket.
      SYMBOLIC_LINK
      The file refers to a symbolic link inode.
      UNKNOWN
      The 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 FileType valueOf​(java.lang.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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null