Class FileOptions

java.lang.Object
com.netlang.io.FileOptions
All Implemented Interfaces:
Serializable

public class FileOptions extends Object implements Serializable
Class that helps filtering files and folders.
See Also:
  • Field Details

    • serialVersionUID

      public static final long serialVersionUID
    • SORT_DEFAULT

      public static int SORT_DEFAULT
      The sort types
    • SORT_DATE_ASC

      public static int SORT_DATE_ASC
    • SORT_DATE_DESC

      public static int SORT_DATE_DESC
    • SORT_NAME_ASC

      public static int SORT_NAME_ASC
    • SORT_NAME_DESC

      public static int SORT_NAME_DESC
  • Constructor Details

    • FileOptions

      public FileOptions()
      Initializes a newly created FileProperties
    • FileOptions

      public FileOptions(Date afterDate, Date beforeDate, long sizeGreaterThan, long sizeLessThan, boolean overwrite, boolean ignoreError, boolean compress, int sorting)
      Initializes a newly created FileProperties
      Parameters:
      afterDate -
      beforeDate -
      greaterThan -
      lessThan -
      overwrite -
      stopAtFirstErr -
      notProcessedFiles -
  • Method Details

    • getNotProcessedFiles

      public List<File> getNotProcessedFiles()
      Get files not processed
      Returns:
      the notProcessedFiles
    • getAfterDate

      public Date getAfterDate()
      Returns:
      the afterDate
    • getBeforeDate

      public Date getBeforeDate()
      Returns:
      the beforeDate
    • getSizeGreaterThan

      public long getSizeGreaterThan()
      Returns:
      the sizeGreaterThan
    • getSizeLessThan

      public long getSizeLessThan()
      Returns:
      the sizeLessThan
    • isOverwrite

      public boolean isOverwrite()
      Returns:
      the overwrite
    • isIgnoreError

      public boolean isIgnoreError()
      Returns:
      the ignoreError
    • setSorting

      public void setSorting(int sorting)
      Parameters:
      sorting - the sorting to set
    • getSorting

      public int getSorting()
      Returns:
      the sorting
    • setAfterDate

      public void setAfterDate(Date afterDate)
      Parameters:
      afterDate - the afterDate to set
    • setBeforeDate

      public void setBeforeDate(Date beforeDate)
      Parameters:
      beforeDate - the beforeDate to set
    • setSizeGreaterThan

      public void setSizeGreaterThan(long sizeGreaterThan)
      Parameters:
      sizeGreaterThan - the sizeGreaterThan to set
    • setSizeLessThan

      public void setSizeLessThan(long sizeLessThan)
      Parameters:
      sizeLessThan - the sizeLessThan to set
    • setOverwrite

      public void setOverwrite(boolean overwrite)
      Parameters:
      overwrite - the overwrite to set
    • setIgnoreError

      public void setIgnoreError(boolean ignoreError)
      Parameters:
      ignoreError - the ignoreError to set
    • getNotProcessedFileNames

      public List<String> getNotProcessedFileNames()
      Returns:
      the notProcessedFileNames
    • getIgnoreRegEx

      public String getIgnoreRegEx()
      Returns:
      the ignoreRegEx
    • setIgnoreRegEx

      public void setIgnoreRegEx(String ignoreRegEx)
      Parameters:
      ignoreRegEx - the ignoreRegEx to set
    • useCompression

      public static boolean useCompression(FileOptions opt, String pattern)
      Use compression
      Parameters:
      opt -
      pattern -
      Returns:
    • isCompress

      public boolean isCompress()
    • setCompress

      public void setCompress(boolean compress)