edu.stanford.hci.r3.tools.design.acrobat
Class RegionConfigurationWriter

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by edu.stanford.hci.r3.tools.design.acrobat.RegionConfigurationWriter
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class RegionConfigurationWriter
extends org.xml.sax.helpers.DefaultHandler

The AcrobatCommunicationServer will write out XML files whenever it gets some input. It will use this class to parse in the XML information, and write out the corresponding file.

This software is distributed under the BSD License.


Constructor Summary
RegionConfigurationWriter(java.io.File theInputXmlFile)
           
RegionConfigurationWriter(java.io.File theInputXMLFile, java.io.File theOutputXMLFile)
           
 
Method Summary
 void characters(char[] chars, int start, int n)
           
 void endDocument()
           
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
           
 java.io.File getOutputFile()
           
 void processXML()
           
 void startDocument()
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegionConfigurationWriter

public RegionConfigurationWriter(java.io.File theInputXmlFile)
Parameters:
inputXMLFile -

RegionConfigurationWriter

public RegionConfigurationWriter(java.io.File theInputXMLFile,
                                 java.io.File theOutputXMLFile)
Parameters:
theInputXMLFile -
theOutputXMLFile -
Method Detail

characters

public void characters(char[] chars,
                       int start,
                       int n)
                throws org.xml.sax.SAXException
Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException
See Also:
DefaultHandler.characters(char[], int, int)

endDocument

public void endDocument()
                 throws org.xml.sax.SAXException
Specified by:
endDocument in interface org.xml.sax.ContentHandler
Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException
See Also:
DefaultHandler.endDocument()

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException
See Also:
DefaultHandler.endElement(java.lang.String, java.lang.String, java.lang.String)

getOutputFile

public java.io.File getOutputFile()
Returns:

processXML

public void processXML()

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Specified by:
startDocument in interface org.xml.sax.ContentHandler
Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException
See Also:
DefaultHandler.startDocument()

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException
See Also:
DefaultHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)

Copyright 2006 Stanford University