Enum FileTransfer.Status

    • Enum Constant Detail

      • INITIAL

        public static final FileTransfer.Status INITIAL
        Indicates that the file transfer request has not been accepted yet.
      • CANCELED

        public static final FileTransfer.Status CANCELED
        Indicates that the file transfer has been cancelled.
      • COMPLETED

        public static final FileTransfer.Status COMPLETED
        Indicates that the file transfer has been completed successfully.
      • FAILED

        public static final FileTransfer.Status FAILED
        Indicates that the file transfer failed.
      • IN_PROGRESS

        public static final FileTransfer.Status IN_PROGRESS
        Indicates that the file transfer is in progress, i.e. bytes are currently streamed.
      • REJECTED

        public static final FileTransfer.Status REJECTED
        Indicates that the file transfer request has been rejected.
    • Method Detail

      • values

        public static FileTransfer.Status[] 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 (FileTransfer.Status c : FileTransfer.Status.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FileTransfer.Status 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