Enum DownloadResult

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

    public enum DownloadResult
    extends java.lang.Enum<DownloadResult>
    An enumeration of the various problem that could potentially flare up when downloading news article HTML.

    This enumerated type is used by the class ScrapeArticles as a return-value. The different constants below are explained in the comments section of each constant. Only the constant named 'SUCCESS' indicates that a news class 'Article' was both successfully downloaded and also handled / saved by the 'ScrapedArticleReceiver' instance. All other constants are used to indicate something went wrong during either the download process or when attempting to save the Article.