java.lang.Object
de.funfried.netbeans.plugins.external.formatter.ui.editor.diff.Diff

public class Diff extends Object
Implementation based on NetBeans' org.netbeans.modules.diff.builtin.provider.HuntDiff but without options, it always takes whitespaces into account.
Author:
bahlef
  • Method Details

    • diff

      public static Difference[] diff(Reader r1, Reader r2) throws IOException
      Parameters:
      r1 - Reader from the first source
      r2 - Reader from the second source
      Returns:
      computed diff
      Throws:
      IOException - if there is an I/O issue with the given Readers
    • diff

      public static Difference[] diff(String[] lines1, String[] lines2)
      Parameters:
      lines1 - array of lines from the first source
      lines2 - array of lines from the second source
      Returns:
      computed diff