public class SimpleDiff
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
SimpleDiff.DiffBuffer |
Modifier and Type | Field and Description |
---|---|
(package private) int |
debugLevel |
(package private) boolean |
debugOn |
(package private) boolean |
diffsFound |
(package private) int |
lookAhead |
(package private) java.io.PrintWriter |
pw |
static java.lang.String |
usage |
Constructor and Description |
---|
SimpleDiff() |
Modifier and Type | Method and Description |
---|---|
void |
debug(int level,
java.lang.String msg) |
void |
debug(java.lang.String msg) |
java.lang.String[] |
diffFiles(SimpleDiff.DiffBuffer file1,
SimpleDiff.DiffBuffer file2) |
boolean |
doWork(java.io.BufferedReader in1,
java.io.BufferedReader in2,
java.io.PrintWriter localPW) |
(package private) int |
lineCount(java.lang.String file) |
static void |
main(java.lang.String[] args) |
void |
pause() |
void |
printFile(java.lang.String[] file) |
java.lang.String[] |
readFile(java.io.BufferedReader input) |
private void |
reportMemory() |
private void |
reportMemory(java.lang.String header) |
java.io.PrintWriter pw
boolean debugOn
int debugLevel
boolean diffsFound
int lookAhead
public static java.lang.String usage
public void debug(int level, java.lang.String msg)
public void debug(java.lang.String msg)
int lineCount(java.lang.String file) throws java.io.IOException
java.io.IOException
public java.lang.String[] readFile(java.io.BufferedReader input) throws java.io.IOException
java.io.IOException
public void printFile(java.lang.String[] file)
public java.lang.String[] diffFiles(SimpleDiff.DiffBuffer file1, SimpleDiff.DiffBuffer file2) throws java.io.IOException
file1
- Name of first file to be readfile2
- Name of file with which to comparejava.io.IOException
- thrown by underlying calls
to the file systemprivate void reportMemory()
private void reportMemory(java.lang.String header)
public boolean doWork(java.io.BufferedReader in1, java.io.BufferedReader in2, java.io.PrintWriter localPW) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public void pause()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.