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() |
void |
initialize(Engine engine,
Properties properties) |
String |
makeDiffHtml(Context ctx,
String p1,
String p2)
Makes the diff by calling "diff" program.
|
public static final String PROP_DIFFCOMMAND
public ExternalDiffProvider()
public String getProviderInfo()
getProviderInfo in interface WikiProvider{@inheritDoc}public void initialize(Engine engine, Properties properties) throws NoRequiredPropertyException, IOException
initialize in interface WikiProviderNoRequiredPropertyExceptionIOExceptionWikiProvider.initialize(org.apache.wiki.api.core.Engine, java.util.Properties)public String makeDiffHtml(Context ctx, String p1, String p2)
makeDiffHtml in interface DiffProviderctx - The Wiki Contextp1 - the old textp2 - the new textCopyright © 2001-2020 The Apache Software Foundation. All rights reserved.