站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

SimpleDiff (NB JUnit) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.nbjunit/1 1.41

org.netbeans.junit.diff
Class SimpleDiff

java.lang.Object
  extended by org.netbeans.junit.diff.SimpleDiff
All Implemented Interfaces:
Diff

public class SimpleDiff
extends Object
implements Diff


Constructor Summary
SimpleDiff()
          Creates new SimpleDiff
 
Method Summary
protected  boolean binaryCompare(File first, File second, File diff)
           
 boolean diff(File first, File second, File diff)
           
 boolean diff(String first, String second, String diff)
           
protected  boolean isBinaryFile(File file)
           
protected  boolean textualCompare(File first, File second, File diff)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDiff

public SimpleDiff()
Creates new SimpleDiff

Method Detail

diff

public boolean diff(File first,
                    File second,
                    File diff)
             throws IOException
Specified by:
diff in interface Diff
Parameters:
first - first file to compare
second - second file to compare
diff - difference file
Returns:
true iff files differ
Throws:
IOException

diff

public boolean diff(String first,
                    String second,
                    String diff)
             throws IOException
Specified by:
diff in interface Diff
Parameters:
first - first file to compare
second - second file to compare
diff - difference file
Returns:
true iff files differ
Throws:
IOException

isBinaryFile

protected boolean isBinaryFile(File file)
                        throws IOException
Throws:
IOException

binaryCompare

protected boolean binaryCompare(File first,
                                File second,
                                File diff)
                         throws IOException
Throws:
IOException

textualCompare

protected boolean textualCompare(File first,
                                 File second,
                                 File diff)
                          throws IOException
Throws:
IOException

org.netbeans.modules.nbjunit/1 1.41

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.