com.jclark.xsl.sax2

Class HTMLOutputHandler

Implemented Interfaces:
ContentHandler, CommentHandler, OutputContentHandler, RawCharactersHandler

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

A OutputContentHandler that writes an HTML representation to a Destination

Constructor Summary

HTMLOutputHandler()
Constructor with output destination TBD
HTMLOutputHandler(Writer writer)
Constructor with a Writer

Method Summary

void
characters(char[] ch, int off, int len)
void
comment(String str)
recieve notification that a comment has been encountered in the parse
void
endDocument()
void
endElement(String namespaceURI, String localName, String qName)
void
endPrefixMapping(String prefix)
void
ignorableWhitespace(char[] ch, int off, int len)
ContentHandler
init(Destination dest, Properties props)
The Properties represent output serialization options
void
processingInstruction(String target, String data)
void
rawCharacters(String chars)
void
setDocumentLocator(org.xml.sax.Locator loc)
void
setWriter(Writer writer)
void
skippedEntity(String name)
void
startDocument()
void
startElement(String namespaceURI, String localName, String qName, Attributes atts)
void
startPrefixMapping(String prefix, String namespaceURI)

Constructor Details

HTMLOutputHandler

public HTMLOutputHandler()
Constructor with output destination TBD


HTMLOutputHandler

public HTMLOutputHandler(Writer writer)
Constructor with a Writer

Method Details

characters

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


comment

public void comment(String str)
            throws SAXException
recieve notification that a comment has been encountered in the parse
Specified by:
comment in interface CommentHandler


endDocument

public void endDocument()
            throws SAXException


endElement

public void endElement(String namespaceURI,
                       String localName,
                       String qName)
            throws SAXException


endPrefixMapping

public void endPrefixMapping(String prefix)


ignorableWhitespace

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


init

public ContentHandler init(Destination dest,
                           Properties props)
            throws IOException
The Properties represent output serialization options
Specified by:
init in interface OutputContentHandler


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)


skippedEntity

public void skippedEntity(String name)


startDocument

public void startDocument()
            throws SAXException


startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes atts)
            throws SAXException


startPrefixMapping

public void startPrefixMapping(String prefix,
                               String namespaceURI)