com.ecyrd.jspwiki.diff
Class TraditionalDiffProvider

java.lang.Object
  extended by com.ecyrd.jspwiki.diff.TraditionalDiffProvider
All Implemented Interfaces:
DiffProvider, WikiProvider

public class TraditionalDiffProvider
extends Object
implements DiffProvider

This is the JSPWiki 'traditional' diff.

Author:
Janne Jalkanen, Erik Bunn, Henning P. Schmiedehausen

Nested Class Summary
 class TraditionalDiffProvider.RevisionPrint
           
 
Nested classes/interfaces inherited from interface com.ecyrd.jspwiki.diff.DiffProvider
DiffProvider.NullDiffProvider
 
Field Summary
 
Fields inherited from interface com.ecyrd.jspwiki.WikiProvider
LATEST_VERSION
 
Constructor Summary
TraditionalDiffProvider()
           
 
Method Summary
 String getProviderInfo()
          Return a valid HTML string for information.
 void initialize(WikiEngine engine, Properties properties)
          Initializes the page provider.
 String makeDiffHtml(String p1, String p2)
          Makes a diff using the BMSI utility package.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraditionalDiffProvider

public TraditionalDiffProvider()
Method Detail

getProviderInfo

public String getProviderInfo()
Description copied from interface: WikiProvider
Return a valid HTML string for information. May be anything.

Specified by:
getProviderInfo in interface WikiProvider
See Also:
WikiProvider.getProviderInfo()

initialize

public void initialize(WikiEngine engine,
                       Properties properties)
                throws NoRequiredPropertyException,
                       IOException
Description copied from interface: WikiProvider
Initializes the page provider.

Specified by:
initialize in interface WikiProvider
Throws:
NoRequiredPropertyException
IOException
See Also:
WikiProvider.initialize(com.ecyrd.jspwiki.WikiEngine, java.util.Properties)

makeDiffHtml

public String makeDiffHtml(String p1,
                           String p2)
Makes a diff using the BMSI utility package. We use our own diff printer, which makes things easier.

Specified by:
makeDiffHtml in interface DiffProvider