com.cloudbees.diff.provider
Class DiffProvider
java.lang.Object
com.cloudbees.diff.provider.DiffProvider
- Direct Known Subclasses:
- BuiltInDiffProvider, CmdlineDiffProvider
public abstract class DiffProvider
- extends Object
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 org.openide.util.Lookup
(e.g. you can get the default diff provider by
Lookup.getDefault().lookup(DiffProvider.class))
- Author:
- Martin Entlicher
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiffProvider
public DiffProvider()
computeDiff
public abstract Diff computeDiff(Reader r1,
Reader r2)
throws IOException
- 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;
- Throws:
IOException - when the reading from input streams fails.
Copyright © 2011-2012. All Rights Reserved.