public class ExternalDiffProvider extends Object implements DiffProvider
DiffProvider.NullDiffProvider
Modifier and Type | Field and Description |
---|---|
static 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 |
---|---|
String |
getProviderInfo()
Return a valid HTML string for information.
|
void |
initialize(WikiEngine engine,
Properties properties)
Initializes the page provider.
|
String |
makeDiffHtml(WikiContext ctx,
String p1,
String p2)
Makes the diff by calling "diff" program.
|
public static final String PROP_DIFFCOMMAND
public ExternalDiffProvider()
public String getProviderInfo()
WikiProvider
getProviderInfo
in interface WikiProvider
{@inheritDoc}
public void initialize(WikiEngine engine, Properties properties) throws NoRequiredPropertyException, 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 setIOException
- If there is an IO problemWikiProvider.initialize(org.apache.wiki.WikiEngine, java.util.Properties)
public String makeDiffHtml(WikiContext ctx, String p1, String p2)
makeDiffHtml
in interface DiffProvider
ctx
- The Wiki Contextp1
- the old textp2
- the new textCopyright © 2001-2019 The Apache Software Foundation. All rights reserved.