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