com.hp.hpl.jena.rdf.arp
Class StAX2SAX

java.lang.Object
  extended by com.hp.hpl.jena.rdf.arp.StAX2SAX

public class StAX2SAX
extends Object

Bridge StAX and SAX parsing.

Author:
Damian Steer

Constructor Summary
StAX2SAX(ContentHandler handler)
          Primes a converter with a SAX handler.
 
Method Summary
 void parse(XMLEventReader xmlReader)
           
 void parse(XMLStreamReader xmlReader)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StAX2SAX

public StAX2SAX(ContentHandler handler)
Primes a converter with a SAX handler. Note: if handler is also LexicalHandler it will pass on lexical events.

Parameters:
handler -
Method Detail

parse

public void parse(XMLStreamReader xmlReader)
           throws XMLStreamException,
                  SAXException
Throws:
XMLStreamException
SAXException

parse

public void parse(XMLEventReader xmlReader)
           throws XMLStreamException,
                  SAXException
Throws:
XMLStreamException
SAXException


Licenced under the Apache License, Version 2.0