de.hedenus.rdf.serialize
Class RDFXMLParser

java.lang.Object
  extended by de.hedenus.rdf.serialize.RDFParser
      extended by de.hedenus.rdf.serialize.RDFXMLParser
All Implemented Interfaces:
XMLReaderEventListener

public class RDFXMLParser
extends RDFParser
implements XMLReaderEventListener

A RDF-XML parser.

Author:
Michael Hedenus

Constructor Summary
RDFXMLParser()
           
 
Method Summary
 void elementBegin(Element element, XMLReader.Scope s)
          Method called when an tag start is encountered.
 void elementEnd(Element element, XMLReader.Scope s)
          The method called when a tag end is encountered.
 void parse(RDFEventListener rdfEventListener, java.io.InputStream in, java.lang.String encoding, java.lang.String documentBase)
           
 void text(java.lang.String text, XMLReader.Scope s)
          Method called when some plain text between two tags is encountered.
 
Methods inherited from class de.hedenus.rdf.serialize.RDFParser
parse, parse, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFXMLParser

public RDFXMLParser()
Method Detail

parse

public void parse(RDFEventListener rdfEventListener,
                  java.io.InputStream in,
                  java.lang.String encoding,
                  java.lang.String documentBase)
           throws java.io.IOException,
                  XMLException
Specified by:
parse in class RDFParser
Throws:
java.io.IOException
XMLException

elementBegin

public void elementBegin(Element element,
                         XMLReader.Scope s)
                  throws XMLException
Description copied from interface: XMLReaderEventListener
Method called when an tag start is encountered.

Specified by:
elementBegin in interface XMLReaderEventListener
Throws:
XMLException

elementEnd

public void elementEnd(Element element,
                       XMLReader.Scope s)
                throws XMLException
Description copied from interface: XMLReaderEventListener
The method called when a tag end is encountered.

Specified by:
elementEnd in interface XMLReaderEventListener
Throws:
XMLException

text

public void text(java.lang.String text,
                 XMLReader.Scope s)
          throws XMLException
Description copied from interface: XMLReaderEventListener
Method called when some plain text between two tags is encountered.

Specified by:
text in interface XMLReaderEventListener
Throws:
XMLException