com.jclark.xsl.sax

Class HTMLOutputHandler

Implemented Interfaces:
DocumentHandler, CommentHandler, OutputDocumentHandler, RawCharactersHandler

public class HTMLOutputHandler
extends java.lang.Object
implements OutputDocumentHandler, CommentHandler, RawCharactersHandler

A OutputDocumentHandler that writes an HTML representation.

Constructor Summary

HTMLOutputHandler()
HTMLOutputHandler(Writer writer)

Method Summary

void
characters(char[] ch, int off, int len)
void
comment(String str)
void
endDocument()
void
endElement(String name)
void
ignorableWhitespace(char[] ch, int off, int len)
DocumentHandler
init(Destination dest, AttributeList atts)
void
processingInstruction(String target, String data)
void
rawCharacters(String chars)
void
setDocumentLocator(org.xml.sax.Locator loc)
void
setWriter(Writer writer)
void
startDocument()
void
startElement(String name, AttributeList atts)

Constructor Details

HTMLOutputHandler

public HTMLOutputHandler()

HTMLOutputHandler

public HTMLOutputHandler(Writer writer)

Method Details

characters

public void characters(char[] ch,
                       int off,
                       int len)
            throws SAXException

comment

public void comment(String str)
            throws SAXException
Specified by:
comment in interface CommentHandler

endDocument

public void endDocument()
            throws SAXException

endElement

public void endElement(String name)
            throws SAXException

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int off,
                                int len)
            throws SAXException

init

public DocumentHandler init(Destination dest,
                            AttributeList atts)
            throws IOException
Specified by:
init in interface OutputDocumentHandler

processingInstruction

public void processingInstruction(String target,
                                  String data)
            throws SAXException

rawCharacters

public void rawCharacters(String chars)
            throws SAXException
Specified by:
rawCharacters in interface RawCharactersHandler

setDocumentLocator

public void setDocumentLocator(org.xml.sax.Locator loc)

setWriter

public void setWriter(Writer writer)

startDocument

public void startDocument()
            throws SAXException

startElement

public void startElement(String name,
                         AttributeList atts)
            throws SAXException