Class DatedFileListJob

  • All Implemented Interfaces:
    Serializable

    public class DatedFileListJob
    extends FileListJob
    Job which returns the names of all files in the archive modified after a specific date.
    See Also:
    Serialized Form
    • Constructor Detail

      • DatedFileListJob

        public DatedFileListJob​(Date since)
        Constructor for this class.
        Parameters:
        since - The date after which we require files to be listed.
    • Method Detail

      • processFile

        public boolean processFile​(File file,
                                   OutputStream os)
        Writes the name of the arcfile to the OutputStream if its lastModified date is more recent than "since".
        Overrides:
        processFile in class FileListJob
        Parameters:
        file - an arcfile
        os - the OutputStream to which data is to be written
        Returns:
        false If listing of this arcfile fails because of an error; true if the name is listed or if it is not listed because the file is too old.