Package de.redsix.pdfcompare
Class CompareResultWithPageOverflow
java.lang.Object
de.redsix.pdfcompare.CompareResultImpl
de.redsix.pdfcompare.AbstractCompareResultWithSwap
de.redsix.pdfcompare.CompareResultWithPageOverflow
- All Implemented Interfaces:
CompareResult,ResultCollector
This CompareResult monitors the number of pages in the result.
When a threshold is reached, the pages are swapped to disk.
-
Field Summary
Fields inherited from class de.redsix.pdfcompare.CompareResultImpl
diffImages, environment, hasDifferenceInExclusion, isEqual -
Constructor Summary
ConstructorsConstructorDescriptionDefaults to swap to disk, when more than 10 pages are stored.CompareResultWithPageOverflow(int maxPages) Swaps to disk, when more than the given pages are in memory. -
Method Summary
Methods inherited from class de.redsix.pdfcompare.AbstractCompareResultWithSwap
addPage, afterSwap, finalize, hasImages, writeTo, writeToMethods inherited from class de.redsix.pdfcompare.CompareResultImpl
actualOnly, addImagesToDocument, addImagesToDocument, addPageToDocument, expectedOnly, getDifferences, getDifferencesJson, getNumberOfPages, getPageDiffsInPercent, getPagesWithDifferences, hasDifferenceInExclusion, hasOnlyActual, hasOnlyExpected, hasOnlyOneDoc, isEqual, isNotEqual, keepImages, noPagesFound, setEnvironmentMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.redsix.pdfcompare.ResultCollector
done
-
Constructor Details
-
CompareResultWithPageOverflow
public CompareResultWithPageOverflow()Defaults to swap to disk, when more than 10 pages are stored. -
CompareResultWithPageOverflow
public CompareResultWithPageOverflow(int maxPages) Swaps to disk, when more than the given pages are in memory.- Parameters:
maxPages- the maximum amount of pages to keep in memory
-
-
Method Details
-
needToSwap
protected boolean needToSwap()- Specified by:
needToSwapin classAbstractCompareResultWithSwap
-