|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.kebrt.html2latex.ParserHandler
class ParserHandler
Handles events sent from the Parser
class.
Calls appropriate methods from the Convertor
class.
Field Summary | |
---|---|
private Convertor |
_conv
Convertor. |
Constructor Summary | |
---|---|
ParserHandler(java.io.File outputFile)
Cstr. |
Method Summary | |
---|---|
void |
comment(java.lang.String comment)
Called when the comment is reached in input document. |
void |
endDocument()
Called when the whole input document is read. |
void |
endElement(ElementEnd element,
ElementStart elementStart)
Called when an end element is reached in the input document. |
void |
characters(java.lang.String content)
Called when the text content of an element is read. |
void |
startElement(ElementStart element)
Called when a start element is reached in the input document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Convertor _conv
Constructor Detail |
---|
ParserHandler(java.io.File outputFile) throws FatalErrorException
outputFile
- output LaTeX file
FatalErrorException
- fatal error (ie. output file can't be closed) occursMethod Detail |
---|
public void startElement(ElementStart element)
commonElementStart()
for non-special elements and specials methods for the elements requiring
special care (ie. tableRowStart()
for <table>)
- Specified by:
startElement
in interface IParserHandler
- Parameters:
element
- start element reached
public void endElement(ElementEnd element, ElementStart elementStart)
commonElementEnd()
for non-special elements and specials methods for the elements requiring
special care (ie. tableRowEnd()
for </table>)
- Specified by:
endElement
in interface IParserHandler
- Parameters:
element
- end element reachedelementStart
- corresponding start element
public void characters(java.lang.String content)
characters()
method
of the Convertor
class.
characters
in interface IParserHandler
content
- ie. "foo" for the "<b>foo</b>"public void comment(java.lang.String comment)
comment()
method
of the Convertor
class.
comment
in interface IParserHandler
comment
- ie. "foo" for the "<!-->foo</-->"public void endDocument()
destroy()
method
of the Convertor
class.
endDocument
in interface IParserHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |