sigmlanim.sigmlstream
Class SiGMLUnitStreamToSignStream

java.lang.Object
  extended by sigmlanim.sigmlstream.SiGMLUnitStreamToSignStream
All Implemented Interfaces:
SiGMLUnitStreamHandler, sigmlstream.xml.XMLUnitStreamHandler

public class SiGMLUnitStreamToSignStream
extends java.lang.Object
implements SiGMLUnitStreamHandler

A SiGMLUnitStreamHandler that converts the input it receives from the source SiGML unit stream to which it is attached into a stream of gestural SiGML signs. This stream of SiGML signs is passed to a StreamedSiGMLReceiver that is specified to the converter at construction time.


Constructor Summary
SiGMLUnitStreamToSignStream(java.net.URI base, StreamedSiGMLReceiver ssrcvr, javax.xml.parsers.SAXParserFactory spfac, sigmlstream.xml.XMLUnitDOMBuilder xudb)
          Constructs a new SiGML unit stream converter, using the given initial SiGML base URI, directing the signs it generates to the given streamed SiGML receiver, and using the given SAX parser factory and XML unit DOM builder when processing any embedded SiGML URI references.
 
Method Summary
 void notifyBaseURI(java.lang.String base)
          Updates the base URI associated with the SiGML sign stream, as specified by the base argument.
 void notifyBeginXMLUnitStream()
          Accepts notification of the start of the SiGML input stream, generating a corresponding notification to this converter's SiGML receiver.
 void notifyEndXMLUnitStream()
          Accepts notification of the end of the SiGML input stream, generating a corresponding notification to this converter's SiGML receiver.
 void notifyXMLUnit(java.util.ArrayList<sigmlstream.xml.XMLUnitEvent> uevts)
          Accepts notification of the next SiGML unit from the SiGML input stream, converting the unit to a SiGML DOM element and processing that element to generate the appropriate stream of events to this converter's SiGML receiver.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiGMLUnitStreamToSignStream

public SiGMLUnitStreamToSignStream(java.net.URI base,
                                   StreamedSiGMLReceiver ssrcvr,
                                   javax.xml.parsers.SAXParserFactory spfac,
                                   sigmlstream.xml.XMLUnitDOMBuilder xudb)
Constructs a new SiGML unit stream converter, using the given initial SiGML base URI, directing the signs it generates to the given streamed SiGML receiver, and using the given SAX parser factory and XML unit DOM builder when processing any embedded SiGML URI references.

Method Detail

notifyBaseURI

public void notifyBaseURI(java.lang.String base)
Updates the base URI associated with the SiGML sign stream, as specified by the base argument.

Specified by:
notifyBaseURI in interface SiGMLUnitStreamHandler

notifyBeginXMLUnitStream

public void notifyBeginXMLUnitStream()
Accepts notification of the start of the SiGML input stream, generating a corresponding notification to this converter's SiGML receiver.

Specified by:
notifyBeginXMLUnitStream in interface sigmlstream.xml.XMLUnitStreamHandler

notifyXMLUnit

public void notifyXMLUnit(java.util.ArrayList<sigmlstream.xml.XMLUnitEvent> uevts)
Accepts notification of the next SiGML unit from the SiGML input stream, converting the unit to a SiGML DOM element and processing that element to generate the appropriate stream of events to this converter's SiGML receiver.

Specified by:
notifyXMLUnit in interface sigmlstream.xml.XMLUnitStreamHandler

notifyEndXMLUnitStream

public void notifyEndXMLUnitStream()
Accepts notification of the end of the SiGML input stream, generating a corresponding notification to this converter's SiGML receiver.

Specified by:
notifyEndXMLUnitStream in interface sigmlstream.xml.XMLUnitStreamHandler