Package com.atlassian.confluence.diff
Class DaisyHtmlDiffer
java.lang.Object
com.atlassian.confluence.diff.DaisyHtmlDiffer
- All Implemented Interfaces:
Differ
Daisy HTML diff implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionDaisyHtmlDiffer
(Transformer transformer, List<DiffPostProcessor> postProcessors, com.atlassian.cache.CacheFactory cacheFactory, LocaleManager localeManager) Deprecated, for removal: This API element is subject to removal in a future version.since 8.6 -
Method Summary
Modifier and TypeMethodDescriptiondiff
(ContentEntityObject leftContent, ContentEntityObject rightContent) Computes a diff between the specified left and right input.Deprecated, for removal: This API element is subject to removal in a future version.since 8.6diff
(String leftHtml, String rightHtml, org.eclipse.core.runtime.IProgressMonitor progressMonitor, boolean useOldAlgorithm) Deprecated, for removal: This API element is subject to removal in a future version.since 8.6
-
Constructor Details
-
DaisyHtmlDiffer
@Deprecated(forRemoval=true) public DaisyHtmlDiffer(Transformer transformer, List<DiffPostProcessor> postProcessors, com.atlassian.cache.CacheFactory cacheFactory, LocaleManager localeManager) Deprecated, for removal: This API element is subject to removal in a future version.since 8.6
-
-
Method Details
-
diff
Description copied from interface:Differ
Computes a diff between the specified left and right input.
The html output will contain span tags with class="diff-html-added|diff-html-removed|diff-html-changed" to indicate differences. -
diff
@Deprecated(forRemoval=true) public String diff(String leftHtml, String rightHtml, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Deprecated, for removal: This API element is subject to removal in a future version.since 8.6Diff two pieces of XHTML content.- Parameters:
leftHtml
- the left HTML contentrightHtml
- the right HTML contentprogressMonitor
- progress monitor to monitor timeout, etc- Returns:
- String output of the diff result
-
diff
@Deprecated(forRemoval=true) public String diff(String leftHtml, String rightHtml, org.eclipse.core.runtime.IProgressMonitor progressMonitor, boolean useOldAlgorithm) Deprecated, for removal: This API element is subject to removal in a future version.since 8.6Diff two pieces of XHTML content.- Parameters:
leftHtml
- the left HTML contentrightHtml
- the right HTML contentprogressMonitor
- progress monitor to monitor timeout, etcuseOldAlgorithm
- if true, diff will use the old non-greedy algorithm, which can result in OOM issues for large diffs- Returns:
- String output of the diff result
-