|
Bibi 19 Oct 2005 21:04 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectujap.bibi.ParseAndEdit
Parses a text, and if some ParseException happens, a text area is displayed
to allow the user to correct the problem.
Overwrite the parse
method to define what parser is
to be used to handle the text.
Instantiate the class and pass the source of the text (a String or a File)
to the constructor.
Field Summary | |
private Object |
textSource
a String or File that is to be parsed |
Constructor Summary | |
protected |
ParseAndEdit(Object textSource)
|
Method Summary | |
(package private) Reader |
convert(Object textSource)
Convert the text source (File or String) to a Reader. |
(package private) abstract Object |
parse(Reader r)
overwrite to call specific parser |
Object |
start()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Object textSource
Constructor Detail |
protected ParseAndEdit(Object textSource)
textSource
- a File or a String.Method Detail |
public Object start()
Reader convert(Object textSource)
abstract Object parse(Reader r) throws ParseException
ParseException
|
Bibi 19 Oct 2005 21:04 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |