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() |
void |
initialize(Engine engine,
java.util.Properties properties) |
java.lang.String |
makeDiffHtml(Context 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()
getProviderInfo in interface WikiProvider{@inheritDoc}public void initialize(Engine engine, java.util.Properties properties) throws NoRequiredPropertyException, java.io.IOException
initialize in interface WikiProviderNoRequiredPropertyExceptionjava.io.IOExceptionWikiProvider.initialize(org.apache.wiki.api.core.Engine, java.util.Properties)public java.lang.String makeDiffHtml(Context ctx, java.lang.String p1, java.lang.String p2)
makeDiffHtml in interface DiffProviderctx - The Wiki Contextp1 - the old textp2 - the new textCopyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.