com.atlassian.confluence.diff
Class LineLevelDiffer

java.lang.Object
  extended by com.atlassian.confluence.diff.LineLevelDiffer

Deprecated. since 5.7. See Differ

@Deprecated
public class LineLevelDiffer
extends Object

Wraps an Apache Diff with Atlassian goodness, making it closer to how a human expects the difference to appear.


Constructor Summary
LineLevelDiffer()
          Deprecated.  
 
Method Summary
static List<ChangeChunk> diff(String[] originalContent, String[] revisedContent, int linesOfContext)
          Deprecated.  
static List<ChangeChunk> diff(String[] originalContent, String[] revisedContent, int linesContext, boolean ignoreWhiteSpace)
          Deprecated. Diff lines of text, showing all context.
static List<ChangeChunk> diff(String origContent, String revdContent)
          Deprecated.  
static List<ChangeChunk> diff(String origContent, String revdContent, boolean ignoreWhiteSpace)
          Deprecated.  
static List<ChangeChunk> diff(String origContent, String revdContent, int linesContext, boolean ignoreWhiteSpace)
          Deprecated.  
static List<ChangeChunk> diffLines(String[] origLines, String[] revdLines, int linesOfContext)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineLevelDiffer

public LineLevelDiffer()
Deprecated. 
Method Detail

diff

public static List<ChangeChunk> diff(String[] originalContent,
                                     String[] revisedContent,
                                     int linesContext,
                                     boolean ignoreWhiteSpace)
                              throws org.apache.commons.jrcs.diff.DifferentiationFailedException
Deprecated. 
Diff lines of text, showing all context.

Parameters:
ignoreWhiteSpace - Do not show added/removed spaces and newlines as changes.
Throws:
org.apache.commons.jrcs.diff.DifferentiationFailedException

diffLines

public static List<ChangeChunk> diffLines(String[] origLines,
                                          String[] revdLines,
                                          int linesOfContext)
                                   throws org.apache.commons.jrcs.diff.DifferentiationFailedException
Deprecated. 
Throws:
org.apache.commons.jrcs.diff.DifferentiationFailedException

diff

public static List<ChangeChunk> diff(String origContent,
                                     String revdContent)
                              throws org.apache.commons.jrcs.diff.DifferentiationFailedException
Deprecated. 
Throws:
org.apache.commons.jrcs.diff.DifferentiationFailedException

diff

public static List<ChangeChunk> diff(String[] originalContent,
                                     String[] revisedContent,
                                     int linesOfContext)
                              throws org.apache.commons.jrcs.diff.DifferentiationFailedException
Deprecated. 
Throws:
org.apache.commons.jrcs.diff.DifferentiationFailedException

diff

public static List<ChangeChunk> diff(String origContent,
                                     String revdContent,
                                     boolean ignoreWhiteSpace)
                              throws org.apache.commons.jrcs.diff.DifferentiationFailedException
Deprecated. 
Throws:
org.apache.commons.jrcs.diff.DifferentiationFailedException

diff

public static List<ChangeChunk> diff(String origContent,
                                     String revdContent,
                                     int linesContext,
                                     boolean ignoreWhiteSpace)
                              throws org.apache.commons.jrcs.diff.DifferentiationFailedException
Deprecated. 
Throws:
org.apache.commons.jrcs.diff.DifferentiationFailedException


Copyright © 2003–2015 Atlassian. All rights reserved.