Class DiffProvider
java.lang.Object
org.netbeans.spi.diff.DiffProvider
This class represents a provider of diff algorithm. The implementing class
should calculate differences between two sources.
The registered Diff Providers can be obtained via Lookup
(e.g. you can get the default diff provider by
Lookup.getDefault().lookup(DiffProvider.class)
)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Difference[]
computeDiff
(Reader r1, Reader r2) Create the differences of the content two streams.
-
Constructor Details
-
DiffProvider
public DiffProvider()
-
-
Method Details
-
computeDiff
Create the differences of the content two streams.- Parameters:
r1
- the first sourcer2
- the second source to be compared with the first one.- Returns:
- the list of differences found, instances of
Difference
; ornull
when some error occured. - Throws:
IOException
- when the reading from input streams fails.
-