cz.vity.freerapid.plugins.webclient
Enum DownloadState

java.lang.Object
  extended by java.lang.Enum<DownloadState>
      extended by cz.vity.freerapid.plugins.webclient.DownloadState
All Implemented Interfaces:
Serializable, Comparable<DownloadState>

public enum DownloadState
extends Enum<DownloadState>

Describes all possible download states

Author:
Vity

Enum Constant Summary
CANCELLED
          user cancelled download of this file
COMPLETED
          file is sucessfully downloaded
DELETED
          file was deleted from the queue
DISABLED
          state that indicates that download cannot continue because its plugin is disabled
DOWNLOADING
          file is being downloaded
ERROR
          downloading/or checking ended with an error
GETTING
          state is indicating that downloading process is waiting for response from the server or writing to disk
PAUSED
          file is in paused state
QUEUED
          file is queued in the front for downloading
SLEEPING
          indicates "WAIT!"
TESTING
          running test check
WAITING
          process is in "downloading state" and waits for other link to continue
 
Method Summary
static DownloadState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DownloadState[] 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

PAUSED

public static final DownloadState PAUSED
file is in paused state


QUEUED

public static final DownloadState QUEUED
file is queued in the front for downloading


GETTING

public static final DownloadState GETTING
state is indicating that downloading process is waiting for response from the server or writing to disk


WAITING

public static final DownloadState WAITING
process is in "downloading state" and waits for other link to continue


SLEEPING

public static final DownloadState SLEEPING
indicates "WAIT!" state - download is not available for given time


DOWNLOADING

public static final DownloadState DOWNLOADING
file is being downloaded


ERROR

public static final DownloadState ERROR
downloading/or checking ended with an error


CANCELLED

public static final DownloadState CANCELLED
user cancelled download of this file


COMPLETED

public static final DownloadState COMPLETED
file is sucessfully downloaded


DELETED

public static final DownloadState DELETED
file was deleted from the queue


DISABLED

public static final DownloadState DISABLED
state that indicates that download cannot continue because its plugin is disabled


TESTING

public static final DownloadState TESTING
running test check

Method Detail

values

public static DownloadState[] 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 (DownloadState c : DownloadState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DownloadState 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