|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.a7soft.examxml.ExamXML
public class ExamXML
The main class of the JExamXML application.
This application can be used in two different ways:
1. As a java standalone application
java -jar jexamxml.jar <arguments>
java -classpath "jexamxml.jar" com.a7soft.examxml.ExamXML <arguments>
2. As a jar library, integrated into user's own java application.
To do this jexamxml.jar should be included in the application classpath
and the import statement should be used:
import com.a7soft.examxml.ExamXML;
The ExamXML class contains several static method which can be used within java code.
To compare XML files and print differences to delta xml file
ExamXML.compareXMLFiles(String file1,String file2,String delta,String options);
To compare XML files without printing differences, just to determine if two XML files are equal
ExamXML.compareXMLFiles(String file1,String file2);
To compare strings representing XML entities
ExamXML.compareXMLEntities(String entity1, String entity2);User: Yuri Kernogo Date: July 29, 2007 Time: 12:48:53 PM.
| Method Summary | |
|---|---|
static int |
compareXMLEntities(java.lang.String entity1,
java.lang.String entity2)
Compares two XML entities, represented by two String objects
and returns a result of comparison. |
static int |
compareXMLFiles(java.lang.String file1,
java.lang.String file2)
Compares two XML files and returns a result of comparison. |
static int |
compareXMLFiles(java.lang.String file1,
java.lang.String file2,
java.lang.String delta,
java.lang.String options)
Compares two XML files, prints the delta XML file containing differences between them, and returns a result of comparison. |
static java.lang.String |
compareXMLString(java.lang.String entity1,
java.lang.String entity2)
Compares two XML entities, represented by two String objects
and returns the String, which contains the differences between
XML entities. |
static void |
main(java.lang.String[] argv)
A main method of the ExamXML class. |
static void |
setLogFile(java.lang.String logFileName)
Sets the log file name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String compareXMLString(java.lang.String entity1,
java.lang.String entity2)
String objects
and returns the String, which contains the differences between
XML entities.
entity1 - the String object, represents the first XML entity to compareentity2 - the String object, represents the second XML entity to compare
String object, which contains the differences
public static int compareXMLEntities(java.lang.String entity1,
java.lang.String entity2)
String objects
and returns a result of comparison.
entity1 - the String object representing the first XML entity to compareentity2 - the String object representing the second XML entity to compare
0 if two XML entities are equal;
1 if two XML entities are not equal;
2 if the error(s) occur
public static int compareXMLFiles(java.lang.String file1,
java.lang.String file2)
file1 - the first XML file to comparefile2 - the second XML file to compare
0 if two XML files are equal;
1 if two XML filees are not equal;
2 if the error(s) occur
public static int compareXMLFiles(java.lang.String file1,
java.lang.String file2,
java.lang.String delta,
java.lang.String options)
file1 - the first XML file to comparefile2 - the second XML file to comparedelta - the delta XML file to print differencesoptions - the option file
0 if two XML files are equal;
1 if two XML files are not equal;
2 if the error(s) occur
public static void main(java.lang.String[] argv)
ExamXML class.
JVM calls this method when the JExamXML application is used as standalone Java application.
argv - the command line argumentspublic static void setLogFile(java.lang.String logFileName)
logFileName -
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||