Class Diff


  • public class Diff
    extends java.lang.Object
    Compares the contents of two files or two streams.
    Author:
    David DIDIER, Alex Ruiz, Yvonne Wang, Matthieu Baechler, Olivier Michallat, Joel Costigliola
    • Constructor Summary

      Constructors 
      Constructor Description
      Diff()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> diff​(java.io.File actual, java.io.File expected)  
      java.util.List<java.lang.String> diff​(java.io.File actual, java.lang.String expected, java.nio.charset.Charset charset)  
      java.util.List<java.lang.String> diff​(java.io.InputStream actual, java.io.InputStream expected)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Diff

        public Diff()
    • Method Detail

      • diff

        public java.util.List<java.lang.String> diff​(java.io.InputStream actual,
                                                     java.io.InputStream expected)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • diff

        public java.util.List<java.lang.String> diff​(java.io.File actual,
                                                     java.io.File expected)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • diff

        public java.util.List<java.lang.String> diff​(java.io.File actual,
                                                     java.lang.String expected,
                                                     java.nio.charset.Charset charset)
                                              throws java.io.IOException
        Throws:
        java.io.IOException