The org.apache.maven.jrcs.diff diff package implements the differencing engine that JRCS uses. The engine has the power of Unix diff, is simple to understand, and can be used independently of the archive handling functionality. The entry point to the differencing engine is class org.apache.maven.jrcs.diff.Diff Diff.
Text is represented as
Object because the diff
engine is capable of handling more than plain ascci. In fact,
arrays of any type that implements
equals() correctly can be subject to
differencing using this library.
Two implementations of the differencing algorithm are provided.