pt.tumba.parser.swf
Class SaxParserBase

java.lang.Object
  extended by pt.tumba.parser.swf.SaxParserBase
All Implemented Interfaces:
org.xml.sax.XMLReader
Direct Known Subclasses:
SWFSaxParser

public abstract class SaxParserBase
extends java.lang.Object
implements org.xml.sax.XMLReader

Base class for SAX2 Parsers

Author:
unknown

Field Summary
protected  org.xml.sax.ContentHandler contenthandler
          Description of the Field
protected  org.xml.sax.DTDHandler dtdhandler
          Description of the Field
protected  java.util.List elementStack
          Description of the Field
protected  org.xml.sax.ErrorHandler errorhandler
          Description of the Field
protected  java.lang.String namespace
          Description of the Field
protected  org.xml.sax.EntityResolver resolver
          Description of the Field
 
Constructor Summary
protected SaxParserBase(java.lang.String namespace)
          Constructor for the SaxParserBase object
 
Method Summary
protected  void element(java.lang.String name, java.lang.String[] attributes)
          Description of the Method
protected  void end()
          Description of the Method
protected  void endDoc()
          Description of the Method
 org.xml.sax.ContentHandler getContentHandler()
          Gets the contentHandler attribute of the SaxParserBase object
 org.xml.sax.DTDHandler getDTDHandler()
          Gets the dTDHandler attribute of the SaxParserBase object
 org.xml.sax.EntityResolver getEntityResolver()
          Gets the entityResolver attribute of the SaxParserBase object
 org.xml.sax.ErrorHandler getErrorHandler()
          Gets the errorHandler attribute of the SaxParserBase object
 boolean getFeature(java.lang.String name)
          Gets the feature attribute of the SaxParserBase object
 java.lang.String getNamespace()
          Gets the namespace attribute of the SaxParserBase object
 java.lang.Object getProperty(java.lang.String name)
          Gets the property attribute of the SaxParserBase object
abstract  void parse(org.xml.sax.InputSource input)
          Description of the Method
abstract  void parse(java.lang.String systemId)
          Description of the Method
 void setContentHandler(org.xml.sax.ContentHandler handler)
          Sets the contentHandler attribute of the SaxParserBase object
 void setDTDHandler(org.xml.sax.DTDHandler handler)
          Sets the dTDHandler attribute of the SaxParserBase object
 void setEntityResolver(org.xml.sax.EntityResolver resolver)
          Sets the entityResolver attribute of the SaxParserBase object
 void setErrorHandler(org.xml.sax.ErrorHandler handler)
          Sets the errorHandler attribute of the SaxParserBase object
 void setFeature(java.lang.String name, boolean value)
          Sets the feature attribute of the SaxParserBase object
 void setNamespace(java.lang.String namespace)
          Sets the namespace attribute of the SaxParserBase object
 void setProperty(java.lang.String name, java.lang.Object value)
          Sets the property attribute of the SaxParserBase object
protected  void start(java.lang.String name, java.lang.String[] attributes)
          Description of the Method
protected  void startDoc()
          Description of the Method
protected  void text(java.lang.String text)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resolver

protected org.xml.sax.EntityResolver resolver
Description of the Field


dtdhandler

protected org.xml.sax.DTDHandler dtdhandler
Description of the Field


contenthandler

protected org.xml.sax.ContentHandler contenthandler
Description of the Field


errorhandler

protected org.xml.sax.ErrorHandler errorhandler
Description of the Field


elementStack

protected java.util.List elementStack
Description of the Field


namespace

protected java.lang.String namespace
Description of the Field

Constructor Detail

SaxParserBase

protected SaxParserBase(java.lang.String namespace)
Constructor for the SaxParserBase object

Parameters:
namespace - Description of the Parameter
Method Detail

getNamespace

public java.lang.String getNamespace()
Gets the namespace attribute of the SaxParserBase object

Returns:
The namespace value

setNamespace

public void setNamespace(java.lang.String namespace)
Sets the namespace attribute of the SaxParserBase object

Parameters:
namespace - The new namespace value

startDoc

protected void startDoc()
                 throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

endDoc

protected void endDoc()
               throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

text

protected void text(java.lang.String text)
             throws java.io.IOException
Description of the Method

Parameters:
text - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

element

protected void element(java.lang.String name,
                       java.lang.String[] attributes)
                throws java.io.IOException
Description of the Method

Parameters:
name - Description of the Parameter
attributes - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

start

protected void start(java.lang.String name,
                     java.lang.String[] attributes)
              throws java.io.IOException
Description of the Method

Parameters:
name - Description of the Parameter
attributes - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

end

protected void end()
            throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

getFeature

public boolean getFeature(java.lang.String name)
                   throws org.xml.sax.SAXNotRecognizedException,
                          org.xml.sax.SAXNotSupportedException
Gets the feature attribute of the SaxParserBase object

Specified by:
getFeature in interface org.xml.sax.XMLReader
Parameters:
name - Description of the Parameter
Returns:
The feature value
Throws:
org.xml.sax.SAXNotRecognizedException - Description of the Exception
org.xml.sax.SAXNotSupportedException - Description of the Exception

setFeature

public void setFeature(java.lang.String name,
                       boolean value)
                throws org.xml.sax.SAXNotRecognizedException,
                       org.xml.sax.SAXNotSupportedException
Sets the feature attribute of the SaxParserBase object

Specified by:
setFeature in interface org.xml.sax.XMLReader
Parameters:
name - The new feature value
value - The new feature value
Throws:
org.xml.sax.SAXNotRecognizedException - Description of the Exception
org.xml.sax.SAXNotSupportedException - Description of the Exception

getProperty

public java.lang.Object getProperty(java.lang.String name)
                             throws org.xml.sax.SAXNotRecognizedException,
                                    org.xml.sax.SAXNotSupportedException
Gets the property attribute of the SaxParserBase object

Specified by:
getProperty in interface org.xml.sax.XMLReader
Parameters:
name - Description of the Parameter
Returns:
The property value
Throws:
org.xml.sax.SAXNotRecognizedException - Description of the Exception
org.xml.sax.SAXNotSupportedException - Description of the Exception

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
                 throws org.xml.sax.SAXNotRecognizedException,
                        org.xml.sax.SAXNotSupportedException
Sets the property attribute of the SaxParserBase object

Specified by:
setProperty in interface org.xml.sax.XMLReader
Parameters:
name - The new property value
value - The new property value
Throws:
org.xml.sax.SAXNotRecognizedException - Description of the Exception
org.xml.sax.SAXNotSupportedException - Description of the Exception

setEntityResolver

public void setEntityResolver(org.xml.sax.EntityResolver resolver)
Sets the entityResolver attribute of the SaxParserBase object

Specified by:
setEntityResolver in interface org.xml.sax.XMLReader
Parameters:
resolver - The new entityResolver value

getEntityResolver

public org.xml.sax.EntityResolver getEntityResolver()
Gets the entityResolver attribute of the SaxParserBase object

Specified by:
getEntityResolver in interface org.xml.sax.XMLReader
Returns:
The entityResolver value

setDTDHandler

public void setDTDHandler(org.xml.sax.DTDHandler handler)
Sets the dTDHandler attribute of the SaxParserBase object

Specified by:
setDTDHandler in interface org.xml.sax.XMLReader
Parameters:
handler - The new dTDHandler value

getDTDHandler

public org.xml.sax.DTDHandler getDTDHandler()
Gets the dTDHandler attribute of the SaxParserBase object

Specified by:
getDTDHandler in interface org.xml.sax.XMLReader
Returns:
The dTDHandler value

setContentHandler

public void setContentHandler(org.xml.sax.ContentHandler handler)
Sets the contentHandler attribute of the SaxParserBase object

Specified by:
setContentHandler in interface org.xml.sax.XMLReader
Parameters:
handler - The new contentHandler value

getContentHandler

public org.xml.sax.ContentHandler getContentHandler()
Gets the contentHandler attribute of the SaxParserBase object

Specified by:
getContentHandler in interface org.xml.sax.XMLReader
Returns:
The contentHandler value

setErrorHandler

public void setErrorHandler(org.xml.sax.ErrorHandler handler)
Sets the errorHandler attribute of the SaxParserBase object

Specified by:
setErrorHandler in interface org.xml.sax.XMLReader
Parameters:
handler - The new errorHandler value

getErrorHandler

public org.xml.sax.ErrorHandler getErrorHandler()
Gets the errorHandler attribute of the SaxParserBase object

Specified by:
getErrorHandler in interface org.xml.sax.XMLReader
Returns:
The errorHandler value

parse

public abstract void parse(org.xml.sax.InputSource input)
                    throws java.io.IOException,
                           org.xml.sax.SAXException
Description of the Method

Specified by:
parse in interface org.xml.sax.XMLReader
Parameters:
input - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception
org.xml.sax.SAXException - Description of the Exception

parse

public abstract void parse(java.lang.String systemId)
                    throws java.io.IOException,
                           org.xml.sax.SAXException
Description of the Method

Specified by:
parse in interface org.xml.sax.XMLReader
Parameters:
systemId - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception
org.xml.sax.SAXException - Description of the Exception