sigmlanim.sigmlstream
Class SiGMLSignsScanner

java.lang.Object
  extended by sigmlanim.sigmlstream.SiGMLSignsScanner

public class SiGMLSignsScanner
extends java.lang.Object

A SiGML scanner, capable of taking its SiGML input from a given URL, string reader or input stream, and generating from this input a stream of SiGML signs, which it directs to a StreamedSiGMLReceiver, supplied when the scanner is constructed.


Constructor Summary
SiGMLSignsScanner(java.net.URI base, StreamedSiGMLReceiver ssrcvr, javax.xml.parsers.SAXParserFactory spfac, sigmlstream.xml.XMLUnitDOMBuilder xudb)
          Constructs a new SiGML scanner, 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 scanSiGMLStream(java.io.InputStream SIGML_STRM)
          Scans the SiGML document accessible via the given input stream, causing a sequence of SiGML signs to be fed to this scanner's SiGML receiver.
 void scanSiGMLText(java.io.StringReader SIGML_STR_RDR)
          Scans the SiGML document accessible via the given string reader, causing a sequence of SiGML signs to be fed to this scanner's SiGML receiver.
 void scanSiGMLURL(java.lang.String SIGML_URL)
          Scans the SiGML document at the given URL, causing a sequence of SiGML signs to be fed to this scanner's SiGML receiver.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiGMLSignsScanner

public SiGMLSignsScanner(java.net.URI base,
                         StreamedSiGMLReceiver ssrcvr,
                         javax.xml.parsers.SAXParserFactory spfac,
                         sigmlstream.xml.XMLUnitDOMBuilder xudb)
                  throws javax.xml.parsers.ParserConfigurationException,
                         org.xml.sax.SAXException
Constructs a new SiGML scanner, 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.

Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
Method Detail

scanSiGMLURL

public void scanSiGMLURL(java.lang.String SIGML_URL)
Scans the SiGML document at the given URL, causing a sequence of SiGML signs to be fed to this scanner's SiGML receiver.


scanSiGMLText

public void scanSiGMLText(java.io.StringReader SIGML_STR_RDR)
Scans the SiGML document accessible via the given string reader, causing a sequence of SiGML signs to be fed to this scanner's SiGML receiver.


scanSiGMLStream

public void scanSiGMLStream(java.io.InputStream SIGML_STRM)
Scans the SiGML document accessible via the given input stream, causing a sequence of SiGML signs to be fed to this scanner's SiGML receiver.