Package ro.sync.diff.api
Class DiffPerformerFactory
- java.lang.Object
-
- ro.sync.diff.api.DiffPerformerFactory
-
@API(type=NOT_EXTENDABLE, src=PUBLIC) public class DiffPerformerFactory extends java.lang.Object
Factory used to create a difference performer, used to compare two resources using different algorithms and options.
-
-
Constructor Summary
Constructors Constructor Description DiffPerformerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthorDifferencePerformer
createAuthorDiffPerformer()
Create an Author difference performer.static DifferencePerformer
createDiffPerformer()
Create difference performer.static void
registerLicenseKey(java.io.Reader licenseReader)
The license key reader to the diff performer factory.
-
-
-
Method Detail
-
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(java.io.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.
-
-