org.simBio.sim.ps.serialize
Class TocReader

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.xml.sax.ext.DefaultHandler2
          extended by org.simBio.serialize.xml.LogSax2
              extended by org.simBio.sim.ps.serialize.TocReader
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, DeclHandler, EntityResolver2, LexicalHandler

public class TocReader
extends LogSax2

Writerで書き出したXMLをParameterSpaceに読み込ませる。

Version:
$Id: TocReader.java,v 1.1 2007/09/25 05:46:08 mikaelwing Exp $
Author:
Sarai

Constructor Summary
TocReader(ICollector collector)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
          Logs character data when debugging.
 void endElement(String uri, String localName, String qName)
          Reports the end of an element.
static void main(String[] args)
           
 void startElement(String uri, String localName, String qName, Attributes attributes)
          Reports the start of an element.
 
Methods inherited from class org.simBio.serialize.xml.LogSax2
attributeDecl, comment, elementDecl, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, externalEntityDecl, getExternalSubset, ignorableWhitespace, internalEntityDecl, notationDecl, processingInstruction, resolveEntity, resolveEntity, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
error, fatalError, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TocReader

public TocReader(ICollector collector)
Parameters:
collector - 結果データの通知先
Method Detail

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes attributes)
                  throws SAXException
Description copied from class: LogSax2
Reports the start of an element.

Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class LogSax2
Throws:
SAXException
See Also:
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
                throws SAXException
Description copied from class: LogSax2
Reports the end of an element.

Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class LogSax2
Throws:
SAXException
See Also:
ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)

characters

public void characters(char[] ch,
                       int start,
                       int length)
Description copied from class: LogSax2
Logs character data when debugging.

Specified by:
characters in interface ContentHandler
Overrides:
characters in class LogSax2
See Also:
ContentHandler.characters(char[], int, int)

main

public static void main(String[] args)
                 throws ParserConfigurationException,
                        SAXException,
                        FactoryConfigurationError,
                        IOException
Parameters:
args - the file name of table of the contents
Throws:
FactoryConfigurationError
SAXException
ParserConfigurationException
IOException


Copyright © 2005 Cell/Biodinamics simulation project. All Rights Reserved.