Class ComparisonService.ComparisonSession
- java.lang.Object
-
- step.plugins.pdftest.services.comparison.ComparisonService.ComparisonSession
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- ComparisonService
public class ComparisonService.ComparisonSession extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description ComparisonSession(ComparisonService.ComparisonSettings comparisonSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ComparisonService.ComparisonReport
compare(List<Mask> masks, File actual, File expected, String pages)
ComparisonService.ComparisonReport
compare(List<Mask> masks, InputStream actual, String actualFileName, InputStream expected, String expectedFileName, String pages)
protected void
reportPageDifference(List<ComparisonService.ComparisonError> errors, String errorMessage, File expectedPage, List<Mask> matchingMasks, File bestMatchPage, ImageDiffReport bestMatchReport)
-
-
-
Constructor Detail
-
ComparisonSession
public ComparisonSession(ComparisonService.ComparisonSettings comparisonSettings)
-
-
Method Detail
-
compare
public ComparisonService.ComparisonReport compare(List<Mask> masks, InputStream actual, String actualFileName, InputStream expected, String expectedFileName, String pages) throws Exception
- Throws:
Exception
-
compare
public ComparisonService.ComparisonReport compare(List<Mask> masks, File actual, File expected, String pages) throws Exception
- Throws:
Exception
-
reportPageDifference
protected void reportPageDifference(List<ComparisonService.ComparisonError> errors, String errorMessage, File expectedPage, List<Mask> matchingMasks, File bestMatchPage, ImageDiffReport bestMatchReport)
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-