Class ComparisonService.ComparisonSession
- java.lang.Object
-
- step.plugins.pdftest.services.comparison.ComparisonService.ComparisonSession
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- ComparisonService
public class ComparisonService.ComparisonSession extends java.lang.Object implements java.io.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(java.util.List<Mask> masks, java.io.File actual, java.io.File expected, java.lang.String pages)
ComparisonService.ComparisonReport
compare(java.util.List<Mask> masks, java.io.InputStream actual, java.lang.String actualFileName, java.io.InputStream expected, java.lang.String expectedFileName, java.lang.String pages)
protected void
reportPageDifference(java.util.List<ComparisonService.ComparisonError> errors, java.lang.String errorMessage, java.io.File expectedPage, java.util.List<Mask> matchingMasks, java.io.File bestMatchPage, ImageDiffReport bestMatchReport)
-
-
-
Constructor Detail
-
ComparisonSession
public ComparisonSession(ComparisonService.ComparisonSettings comparisonSettings)
-
-
Method Detail
-
compare
public ComparisonService.ComparisonReport compare(java.util.List<Mask> masks, java.io.InputStream actual, java.lang.String actualFileName, java.io.InputStream expected, java.lang.String expectedFileName, java.lang.String pages) throws java.lang.Exception
- Throws:
java.lang.Exception
-
compare
public ComparisonService.ComparisonReport compare(java.util.List<Mask> masks, java.io.File actual, java.io.File expected, java.lang.String pages) throws java.lang.Exception
- Throws:
java.lang.Exception
-
reportPageDifference
protected void reportPageDifference(java.util.List<ComparisonService.ComparisonError> errors, java.lang.String errorMessage, java.io.File expectedPage, java.util.List<Mask> matchingMasks, java.io.File bestMatchPage, ImageDiffReport bestMatchReport)
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-