Spring Web Services Framework

org.springframework.xml.sax
Class AbstractXmlReader

java.lang.Object
  extended by org.springframework.xml.sax.AbstractXmlReader
All Implemented Interfaces:
XMLReader
Direct Known Subclasses:
SaajXmlReader

public abstract class AbstractXmlReader
extends Object
implements XMLReader

Abstract base class for SAX XMLReader implementations. Contains properties as defined in XMLReader, and does not recognize any features

Since:
1.0.0
Author:
Arjen Poutsma
See Also:
setContentHandler(org.xml.sax.ContentHandler), setDTDHandler(org.xml.sax.DTDHandler), setEntityResolver(org.xml.sax.EntityResolver), setErrorHandler(org.xml.sax.ErrorHandler)

Constructor Summary
AbstractXmlReader()
           
 
Method Summary
 ContentHandler getContentHandler()
           
 DTDHandler getDTDHandler()
           
 EntityResolver getEntityResolver()
           
 ErrorHandler getErrorHandler()
           
 boolean getFeature(String name)
          Throws a SAXNotRecognizedException exception.
protected  LexicalHandler getLexicalHandler()
           
 Object getProperty(String name)
          Throws a SAXNotRecognizedException exception when the given property does not signify a lexical handler.
 void setContentHandler(ContentHandler contentHandler)
           
 void setDTDHandler(DTDHandler dtdHandler)
           
 void setEntityResolver(EntityResolver entityResolver)
           
 void setErrorHandler(ErrorHandler errorHandler)
           
 void setFeature(String name, boolean value)
          Throws a SAXNotRecognizedException exception.
 void setProperty(String name, Object value)
          Throws a SAXNotRecognizedException exception when the given property does not signify a lexical handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.XMLReader
parse, parse
 

Constructor Detail

AbstractXmlReader

public AbstractXmlReader()
Method Detail

getContentHandler

public ContentHandler getContentHandler()
Specified by:
getContentHandler in interface XMLReader

setContentHandler

public void setContentHandler(ContentHandler contentHandler)
Specified by:
setContentHandler in interface XMLReader

setDTDHandler

public void setDTDHandler(DTDHandler dtdHandler)
Specified by:
setDTDHandler in interface XMLReader

getDTDHandler

public DTDHandler getDTDHandler()
Specified by:
getDTDHandler in interface XMLReader

getEntityResolver

public EntityResolver getEntityResolver()
Specified by:
getEntityResolver in interface XMLReader

setEntityResolver

public void setEntityResolver(EntityResolver entityResolver)
Specified by:
setEntityResolver in interface XMLReader

getErrorHandler

public ErrorHandler getErrorHandler()
Specified by:
getErrorHandler in interface XMLReader

setErrorHandler

public void setErrorHandler(ErrorHandler errorHandler)
Specified by:
setErrorHandler in interface XMLReader

getLexicalHandler

protected LexicalHandler getLexicalHandler()

getFeature

public boolean getFeature(String name)
                   throws SAXNotRecognizedException,
                          SAXNotSupportedException
Throws a SAXNotRecognizedException exception.

Specified by:
getFeature in interface XMLReader
Throws:
SAXNotRecognizedException - always
SAXNotSupportedException

setFeature

public void setFeature(String name,
                       boolean value)
                throws SAXNotRecognizedException,
                       SAXNotSupportedException
Throws a SAXNotRecognizedException exception.

Specified by:
setFeature in interface XMLReader
Throws:
SAXNotRecognizedException - always
SAXNotSupportedException

getProperty

public Object getProperty(String name)
                   throws SAXNotRecognizedException,
                          SAXNotSupportedException
Throws a SAXNotRecognizedException exception when the given property does not signify a lexical handler. The property name for a lexical handler is http://xml.org/sax/properties/lexical-handler.

Specified by:
getProperty in interface XMLReader
Throws:
SAXNotRecognizedException
SAXNotSupportedException

setProperty

public void setProperty(String name,
                        Object value)
                 throws SAXNotRecognizedException,
                        SAXNotSupportedException
Throws a SAXNotRecognizedException exception when the given property does not signify a lexical handler. The property name for a lexical handler is http://xml.org/sax/properties/lexical-handler.

Specified by:
setProperty in interface XMLReader
Throws:
SAXNotRecognizedException
SAXNotSupportedException

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.