org.media.mn8
Class mn8XMLReader
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--org.media.mn8.mn8XMLReader
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
- public class mn8XMLReader
- extends DefaultHandler
- implements EntityResolver
Class that reads an String containing a well formated XML
document and creates an Concept from it's content.
- Version:
- $Revision: 1.8 $ $Date: 2002/07/24 23:25:47 $
- Author:
- Remus Pereni
Method Summary |
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(String uri,
String localname,
String qname)
|
ElementConcept |
getFlexFromXML(StringConcept xmlDocument)
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
parse(String value)
|
void |
processChar(String val)
|
InputSource |
resolveEntity(String publicId,
String systemId)
|
void |
startDocument()
|
void |
startElement(String uri,
String localname,
String qname,
Attributes attributes)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mn8XMLReader
protected mn8XMLReader()
parse
public void parse(String value)
throws SAXException,
IOException
SAXException
IOException
getFlexFromXML
public ElementConcept getFlexFromXML(StringConcept xmlDocument)
startDocument
public void startDocument()
throws SAXException
- Specified by:
startDocument
in interface ContentHandler
- Overrides:
startDocument
in class DefaultHandler
SAXException
endDocument
public void endDocument()
throws SAXException
- Specified by:
endDocument
in interface ContentHandler
- Overrides:
endDocument
in class DefaultHandler
SAXException
startElement
public void startElement(String uri,
String localname,
String qname,
Attributes attributes)
throws SAXException
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class DefaultHandler
SAXException
endElement
public void endElement(String uri,
String localname,
String qname)
throws SAXException
- Specified by:
endElement
in interface ContentHandler
- Overrides:
endElement
in class DefaultHandler
SAXException
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
characters
in interface ContentHandler
- Overrides:
characters
in class DefaultHandler
SAXException
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
ignorableWhitespace
in interface ContentHandler
- Overrides:
ignorableWhitespace
in class DefaultHandler
SAXException
processChar
public void processChar(String val)
resolveEntity
public InputSource resolveEntity(String publicId,
String systemId)
- Specified by:
resolveEntity
in interface EntityResolver
- Overrides:
resolveEntity
in class DefaultHandler
"Copyright © 2000-2002 Internet Multicasting Services, media.org & noLimits Technologies. All Rights Reserved."