public class ExternalDiffProvider extends java.lang.Object implements DiffProvider
DiffProvider.NullDiffProvider
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_DIFFCOMMAND
Determines the command to be used for 'diff'.
|
LATEST_VERSION
Constructor and Description |
---|
ExternalDiffProvider()
Creates a new ExternalDiffProvider.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProviderInfo()
Return a valid HTML string for information.
|
void |
initialize(WikiEngine engine,
java.util.Properties properties)
Initializes the page provider.
|
java.lang.String |
makeDiffHtml(WikiContext ctx,
java.lang.String p1,
java.lang.String p2)
Makes the diff by calling "diff" program.
|
public static final java.lang.String PROP_DIFFCOMMAND
public ExternalDiffProvider()
public java.lang.String getProviderInfo()
WikiProvider
getProviderInfo
in interface WikiProvider
{@inheritDoc}
public void initialize(WikiEngine engine, java.util.Properties properties) throws NoRequiredPropertyException, java.io.IOException
initialize
in interface WikiProvider
engine
- WikiEngine to own this providerproperties
- A set of properties used to initialize this providerNoRequiredPropertyException
- If the provider needs a property which is not found in the property setjava.io.IOException
- If there is an IO problemWikiProvider.initialize(com.ecyrd.jspwiki.WikiEngine, java.util.Properties)
public java.lang.String makeDiffHtml(WikiContext ctx, java.lang.String p1, java.lang.String p2)
makeDiffHtml
in interface DiffProvider
ctx
- The Wiki Contextp1
- the old textp2
- the new textstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.