fedora.server.storage.service
Class DSInputSpecParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
fedora.server.storage.service.DSInputSpecParser
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
public class DSInputSpecParser
- extends org.xml.sax.helpers.DefaultHandler
Title: DSInputSpecParser.java
Description: A class for parsing the special XML format in Fedora
for a Datastream Input Specification (DSInputSpec). A DSInputSpec exists
within a Behavior Mechanism Object (bmech), and is used to define the
"data contract" between the service represented by the bmech and a data
object.
- Version:
- $Id: DSInputSpecParser.java 5210 2006-11-16 05:55:44Z eddie $
- Author:
- payette@cs.cornell.edu
|
Constructor Summary |
DSInputSpecParser(java.lang.String parentPID)
Constructor to enable another class to initiate the parsing |
DSInputSpecParser(java.lang.String parentPID,
java.io.InputStream in)
Constructor allows this class to initiate the parsing |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DSInputSpecParser
public DSInputSpecParser(java.lang.String parentPID)
- Constructor to enable another class to initiate the parsing
DSInputSpecParser
public DSInputSpecParser(java.lang.String parentPID,
java.io.InputStream in)
throws RepositoryConfigurationException,
ObjectIntegrityException
- Constructor allows this class to initiate the parsing
- Throws:
RepositoryConfigurationException
ObjectIntegrityException
getServiceDSInputSpec
public BMechDSBindSpec getServiceDSInputSpec()
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
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
startPrefixMapping
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
- Specified by:
startPrefixMapping in interface org.xml.sax.ContentHandler- Overrides:
startPrefixMapping in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
skippedEntity
public void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
- Specified by:
skippedEntity in interface org.xml.sax.ContentHandler- Overrides:
skippedEntity in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
characters
public void characters(char[] ch,
int start,
int length)
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
startElement
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
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
endElement
public void endElement(java.lang.String namespaceURI,
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