com.ecyrd.jspwiki.diff
Class ExternalDiffProvider

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

public class ExternalDiffProvider
extends Object
implements DiffProvider

This DiffProvider allows external command line tools to be used to generate the diff.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.ecyrd.jspwiki.diff.DiffProvider
DiffProvider.NullDiffProvider
 
Field Summary
static String PROP_DIFFCOMMAND
          Determines the command to be used for 'diff'.
 
Fields inherited from interface com.ecyrd.jspwiki.WikiProvider
LATEST_VERSION
 
Constructor Summary
ExternalDiffProvider()
           
 
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 the diff by calling "diff" program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_DIFFCOMMAND

public static final String PROP_DIFFCOMMAND
Determines the command to be used for 'diff'. This program must be able to output diffs in the unified format. For example 'diff -u %s1 %s2'.

See Also:
Constant Field Values
Constructor Detail

ExternalDiffProvider

public ExternalDiffProvider()
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 the diff by calling "diff" program.

Specified by:
makeDiffHtml in interface DiffProvider