sigmlanim.sigmlstream
Class SiGMLFilter

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by sigmlstream.xml.XMLUnitFilter
          extended by sigmlanim.sigmlstream.SiGMLFilter
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.XMLFilter, org.xml.sax.XMLReader

public class SiGMLFilter
extends sigmlstream.xml.XMLUnitFilter

A SAX XML document filter that converts its SiGML input event stream into a stream of top-level SiGML sign descriptors.


Constructor Summary
SiGMLFilter(org.xml.sax.XMLReader parent, SiGMLUnitStreamHandler sshdlr)
          Constructs a new SiGML sign filter, with the given parent XML reader as its source and the given SiGML unit stream handler as target.
 
Method Summary
 void startElement(java.lang.String uri, java.lang.String lname, java.lang.String qname, org.xml.sax.Attributes attrs)
          Handles the start of a new SiGML element, as characterized by the given arguments, in the source.
 
Methods inherited from class sigmlstream.xml.XMLUnitFilter
endElement, getLevel
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiGMLFilter

public SiGMLFilter(org.xml.sax.XMLReader parent,
                   SiGMLUnitStreamHandler sshdlr)
Constructs a new SiGML sign filter, with the given parent XML reader as its source and the given SiGML unit stream handler as target.

Method Detail

startElement

public void startElement(java.lang.String uri,
                         java.lang.String lname,
                         java.lang.String qname,
                         org.xml.sax.Attributes attrs)
                  throws org.xml.sax.SAXException
Handles the start of a new SiGML element, as characterized by the given arguments, in the source. This will lead to the appropriate steps in the generation of the target event stream, including possibly the nofiication of an associated base URI.

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class sigmlstream.xml.XMLUnitFilter
Throws:
org.xml.sax.SAXException