|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AQFileComparator
This interface provides a mechanism for simple file comparison. Files can be compared based on the following criteria:
AQComparator
interface for this purpose.
Method Summary | |
---|---|
AQFileDifferences |
compare(Object leftFolder,
Object rightFolder)
Compares files contained in the specified folders, including sub-folders, according to the set criteria. |
AQFileDifferences |
compare(Object leftFolder,
Object rightFolder,
boolean recursive)
Compares files contained in the specified folders, according to the set criteria. |
void |
setIgnoreCase(boolean ignore)
Determines whether comparison operation should ignore the file name case. |
void |
setIgnoreContent(boolean ignore)
Determines whether comparison operation should ignore the file content. |
void |
setIgnoreTimestamp(boolean ignore)
Determines whether comparison operation should ignore the file timestamp. |
void |
setTimestampTolerance(int ms)
Determines the maximum difference between two timetamps to be considered equal. |
Method Detail |
---|
void setIgnoreCase(boolean ignore)
ignore
- void setIgnoreTimestamp(boolean ignore)
ignore
- void setIgnoreContent(boolean ignore)
ignore
- void setTimestampTolerance(int ms)
ms
- Time difference in milliseconds.AQFileDifferences compare(Object leftFolder, Object rightFolder)
leftFolder
- Left folder name or a File
object.rightFolder
- Right folder name or a File
object.AQFileDifferences compare(Object leftFolder, Object rightFolder, boolean recursive)
leftFolder
- Left folder name or a File
object.rightFolder
- Right folder name or a File
object.recursive
- When true, the comparison will also include files in sub-folders.
|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |