org.ccil.cowan.tagsoup.jaxp

Class SAX1ParserAdapter

Implemented Interfaces:
org.xml.sax.Parser

public class SAX1ParserAdapter
extends java.lang.Object
implements org.xml.sax.Parser

This is a simpler adapter class that allows using SAX1 interface on top of basic SAX2 implementation, such as TagSoup.
Author:
Tatu Saloranta (cowtowncoder@yahoo.com)

Constructor Summary

SAX1ParserAdapter(XMLReader xr)

Method Summary

void
parse(InputSource source)
void
parse(String systemId)
void
setDTDHandler(DTDHandler h)
void
setDocumentHandler(DocumentHandler h)
Deprecated.
void
setEntityResolver(EntityResolver r)
void
setErrorHandler(ErrorHandler h)
void
setLocale(java.util.Locale locale)

Constructor Details

SAX1ParserAdapter

public SAX1ParserAdapter(XMLReader xr)

Method Details

parse

public void parse(InputSource source)
            throws SAXException

parse

public void parse(String systemId)
            throws SAXException

setDTDHandler

public void setDTDHandler(DTDHandler h)

setDocumentHandler

public void setDocumentHandler(DocumentHandler h)

Deprecated.


setEntityResolver

public void setEntityResolver(EntityResolver r)

setErrorHandler

public void setErrorHandler(ErrorHandler h)

setLocale

public void setLocale(java.util.Locale locale)
            throws SAXException

Licence: Academic Free License 3.0 and/or GPL 2.0