Class 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
    • 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 interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException