FileDocCategorySizeDatePackage
AbstractXMLReader.javaAPI DocExample2769Sun Sep 02 14:59:04 BST 2001com.oreilly.javaxslt.util

AbstractXMLReader

public abstract class AbstractXMLReader extends Object implements XMLReader
An abstract class that implements the SAX2 XMLReader interface. The intent of this class is to make it easy for subclasses to act as SAX2 XMLReader implementations. This makes it possible, for example, for them to emit SAX2 events that can be fed into an XSLT processor for transformation.
author
Eric M. Burke

Fields Summary
private Map
featureMap
private Map
propertyMap
private EntityResolver
entityResolver
private DTDHandler
dtdHandler
private ContentHandler
contentHandler
private ErrorHandler
errorHandler
Constructors Summary
Methods Summary
public org.xml.sax.ContentHandlergetContentHandler()

        return this.contentHandler;
    
public org.xml.sax.DTDHandlergetDTDHandler()

        return this.dtdHandler;
    
public org.xml.sax.EntityResolvergetEntityResolver()

        return this.entityResolver;
    
public org.xml.sax.ErrorHandlergetErrorHandler()

        return this.errorHandler;
    
public booleangetFeature(java.lang.String name)


                               
          
            

       
               
        Boolean featureValue = (Boolean) this.featureMap.get(name);
        return (featureValue == null) ? false
                : featureValue.booleanValue();
    
public java.lang.ObjectgetProperty(java.lang.String name)

        return this.propertyMap.get(name);
    
public abstract voidparse(org.xml.sax.InputSource input)
The only abstract method in this class. Derived classes can parse any source of data and emit SAX2 events to the ContentHandler.

public voidparse(java.lang.String systemId)

        parse(new InputSource(systemId));
    
public voidsetContentHandler(org.xml.sax.ContentHandler contentHandler)

        this.contentHandler = contentHandler;
    
public voidsetDTDHandler(org.xml.sax.DTDHandler dtdHandler)

        this.dtdHandler = dtdHandler;
    
public voidsetEntityResolver(org.xml.sax.EntityResolver entityResolver)

        this.entityResolver = entityResolver;
    
public voidsetErrorHandler(org.xml.sax.ErrorHandler errorHandler)

        this.errorHandler = errorHandler;
    
public voidsetFeature(java.lang.String name, boolean value)

        this.featureMap.put(name, new Boolean(value));
    
public voidsetProperty(java.lang.String name, java.lang.Object value)

        this.propertyMap.put(name, value);