|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.simbad.SesameFile
Manages a sesame file. Such a file contains a list of regular expressions and also test examples in a specific format.ot attributable
Constructor Summary | |
SesameFile()
|
Method Summary | |
static int |
checkExamples(java.io.InputStream in,
java.lang.String options,
Sesame ses)
Checks all the examples contained in the sesame file |
private static void |
errorMsg(java.lang.String text,
java.lang.String command,
int num)
Display an error message |
private static int |
esc_search(java.lang.String str,
int offset,
char c)
Find the first non escaped character in a string from the offset on |
static void |
main(java.lang.String[] args)
Test programme. |
static Sesame |
sesameCreate(java.io.InputStream in)
Creates a sesame object from a file containing sesame commands |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SesameFile()
Method Detail |
public static Sesame sesameCreate(java.io.InputStream in)
in
- InputStream
public static int checkExamples(java.io.InputStream in, java.lang.String options, Sesame ses)
in
- InputStream to read. The examples are contained in comment
lines having the syntaxprivate static int esc_search(java.lang.String str, int offset, char c)
str
- string to analyzeoffset
- 1st byte to checkc
- character to look for
private static void errorMsg(java.lang.String text, java.lang.String command, int num)
text
- error messagecommand
- command line having produced the errornum
- corresponding line number in the filepublic static void main(java.lang.String[] args)
It reads all the sesame commands in a given file, build a Sesame object ans tests all examples contained in the file Usage: SesameFile filename
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |