Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.netbeans.modules.diff/1 1.15.22 42
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.netbeans.spi.diff
Class DiffProvider

    java.lang.Object
      org.netbeans.spi.diff.DiffProvider

    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 `Lookup` (e.g. you can get the default diff provider by `Lookup.getDefault().lookup(DiffProvider.class)`)

Constructor Summary
`DiffProvider()`

Method Summary
`abstract Difference[]` | `computeDiff(Reader r1, Reader r2)` Create the differences of the content two streams.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DiffProvider

    public DiffProvider()

Method Detail

### computeDiff

    public abstract Difference[] computeDiff(Reader r1,
                                             Reader r2)
                                      throws IOException

  Create the differences of the content two streams.

  Parameters:
    `r1` - the first source
    `r2` - the second source to be compared with the first one.
  Returns:
    the list of differences found, instances of `Difference`; or `null` when some error occured.
  Throws:
    `IOException` - when the reading from input streams fails.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.netbeans.modules.diff/1 1.15.22 42
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Built on December 7 2006. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.