public class SaxPullAdapter extends Object
Modifier and Type | Class and Description |
---|---|
private class |
SaxPullAdapter.EventPushingContentHandler |
Modifier and Type | Field and Description |
---|---|
private static Debug |
_debug |
(package private) Thread |
_eventProducerThread |
private BufferedQueue<Event> |
_eventQueue |
private SAXParser |
_saxParser |
private XMLReader |
_xmlReader |
Constructor and Description |
---|
SaxPullAdapter(EntityResolver resolver) |
SaxPullAdapter(URL schemaURL) |
Modifier and Type | Method and Description |
---|---|
PullableEventStream |
start(File file,
ErrorHandler errorHandler) |
PullableEventStream |
start(InputStream inputStream,
ErrorHandler errorHandler) |
void |
stop() |
private static final Debug _debug
private SAXParser _saxParser
private XMLReader _xmlReader
private BufferedQueue<Event> _eventQueue
Thread _eventProducerThread
public SaxPullAdapter(EntityResolver resolver) throws ParserConfigurationException, SAXException
public SaxPullAdapter(URL schemaURL) throws ParserConfigurationException, SAXException
public PullableEventStream start(InputStream inputStream, ErrorHandler errorHandler) throws SAXException, InterruptedException
SAXException
InterruptedException
public PullableEventStream start(File file, ErrorHandler errorHandler) throws SAXException, InterruptedException
SAXException
InterruptedException
public void stop()