speedscheduler.io
Class XmlScheduleIO.ScheduleHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by speedscheduler.io.XmlScheduleIO.ScheduleHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
Enclosing class:
XmlScheduleIO

private class XmlScheduleIO.ScheduleHandler
extends org.xml.sax.helpers.DefaultHandler


Field Summary
protected  Schedule currentSchedule
           
protected  int defaultMaxDownloadRate
           
protected  int defaultMaxUploadRate
           
protected  java.util.Vector schedules
           
 
Constructor Summary
private XmlScheduleIO.ScheduleHandler()
           
 
Method Summary
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
           
 int getDefaultMaxDownloadRate()
           
 int getDefaultMaxUploadRate()
           
 java.util.Vector getSchedules()
           
 void startDocument()
          Initialize.
 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
characters, endDocument, 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
 

Field Detail

schedules

protected java.util.Vector schedules

defaultMaxUploadRate

protected int defaultMaxUploadRate

defaultMaxDownloadRate

protected int defaultMaxDownloadRate

currentSchedule

protected Schedule currentSchedule
Constructor Detail

XmlScheduleIO.ScheduleHandler

private XmlScheduleIO.ScheduleHandler()
Method Detail

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Initialize.

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:
ContentHandler.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:
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)

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:
ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)

getDefaultMaxUploadRate

public int getDefaultMaxUploadRate()

getDefaultMaxDownloadRate

public int getDefaultMaxDownloadRate()

getSchedules

public java.util.Vector getSchedules()