Package com.netlang.io
Class FileOptions
java.lang.Object
com.netlang.io.FileOptions
- All Implemented Interfaces:
Serializable
Class that helps filtering files and folders.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic intstatic intstatic intThe sort typesstatic intstatic int -
Constructor Summary
ConstructorsConstructorDescriptionInitializes a newly createdFilePropertiesFileOptions(Date afterDate, Date beforeDate, long sizeGreaterThan, long sizeLessThan, boolean overwrite, boolean ignoreError, boolean compress, int sorting) Initializes a newly createdFileProperties -
Method Summary
Modifier and TypeMethodDescriptionGet files not processedlonglongintbooleanbooleanbooleanvoidsetAfterDate(Date afterDate) voidsetBeforeDate(Date beforeDate) voidsetCompress(boolean compress) voidsetIgnoreError(boolean ignoreError) voidsetIgnoreRegEx(String ignoreRegEx) voidsetOverwrite(boolean overwrite) voidsetSizeGreaterThan(long sizeGreaterThan) voidsetSizeLessThan(long sizeLessThan) voidsetSorting(int sorting) static booleanuseCompression(FileOptions opt, String pattern) Use compression
-
Field Details
-
serialVersionUID
public static final long serialVersionUID -
SORT_DEFAULT
public static int SORT_DEFAULTThe 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 createdFileProperties -
FileOptions
public FileOptions(Date afterDate, Date beforeDate, long sizeGreaterThan, long sizeLessThan, boolean overwrite, boolean ignoreError, boolean compress, int sorting) Initializes a newly createdFileProperties- Parameters:
afterDate-beforeDate-greaterThan-lessThan-overwrite-stopAtFirstErr-notProcessedFiles-
-
-
Method Details
-
getNotProcessedFiles
Get files not processed- Returns:
- the notProcessedFiles
-
getAfterDate
- Returns:
- the afterDate
-
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
- Parameters:
afterDate- the afterDate to set
-
setBeforeDate
- 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
- Returns:
- the notProcessedFileNames
-
getIgnoreRegEx
- Returns:
- the ignoreRegEx
-
setIgnoreRegEx
- Parameters:
ignoreRegEx- the ignoreRegEx to set
-
useCompression
Use compression- Parameters:
opt-pattern-- Returns:
-
isCompress
public boolean isCompress() -
setCompress
public void setCompress(boolean compress)
-