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 void
close()
PdfComparisonService.ComparisonReport
compare(List<Mask> masks, File actual, File expected, String pages)
PdfComparisonService.ComparisonReport
compare(List<Mask> masks, InputStream actual, InputStream expected, String pages)
protected void
reportPageDifference(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-