Class DiffPerformerFactory

java.lang.Object
ro.sync.diff.api.DiffPerformerFactory

@API(type=NOT_EXTENDABLE, src=PUBLIC) public class DiffPerformerFactory extends Object
Factory used to create a difference performer, used to compare two resources using different algorithms and options.
  • Constructor Details

    • DiffPerformerFactory

      public DiffPerformerFactory()
  • Method Details

    • createDiffPerformer

      public static DifferencePerformer createDiffPerformer() throws DiffException
      Create difference performer.
      Returns:
      a difference performer that can be used to compare two resources using different algorithms and options.
      Throws:
      DiffException - When it fails to create the diff performer.
    • createAuthorDiffPerformer

      public static AuthorDifferencePerformer createAuthorDiffPerformer() throws DiffException
      Create an Author difference performer.
      Returns:
      a difference performer that can be used to compare Author documents using different algorithms and options.
      Throws:
      DiffException - When it fails to create the diff performer.
    • registerLicenseKey

      public static void registerLicenseKey(Reader licenseReader) throws DiffException
      The license key reader to the diff performer factory.
      Parameters:
      licenseReader - The reader from where the license should be read.
      Throws:
      DiffException - Thrown if the license could not be read.