|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcz.kebrt.html2latex.CSSParser
public class CSSParser
CSS parser.
| Field Summary | |
|---|---|
private java.io.File |
_file
Input file. |
private java.io.FileReader |
_fr
Input file. |
private ICSSParserHandler |
_handler
Handler which receives events from the parser. |
private java.io.BufferedReader |
_reader
Input file. |
| Constructor Summary | |
|---|---|
CSSParser()
|
|
| Method Summary | |
|---|---|
private void |
destroy()
Closes the file specified in the parse() method. |
private void |
doParsing()
Parses the CSS file. |
private void |
init()
Opens the file specified in the parse() method. |
void |
parse(java.io.File f,
ICSSParserHandler handler)
Parser the CSS file and sends events to the handler. |
private void |
parseStyle(java.lang.String style)
Parses single CSS style. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.io.File _file
private java.io.FileReader _fr
private java.io.BufferedReader _reader
private ICSSParserHandler _handler
| Constructor Detail |
|---|
public CSSParser()
| Method Detail |
|---|
public void parse(java.io.File f,
ICSSParserHandler handler)
f - CSS filehandler - handler receiving events
private void init()
throws ErrorException
parse() method.
ErrorException - when the file can't be opened
private void destroy()
throws ErrorException
parse() method.
ErrorException - when the file can't be closed
private void doParsing()
throws java.io.IOException
".bold { font-weight:bold; } )
parseStyle() method is called.
java.io.IOException - input error occursprivate void parseStyle(java.lang.String style)
style - style definition (including style name and curly brackets)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||