Modifier and Type | Method and Description |
---|---|
void |
begin(java.net.URL url)
Begin fetching the URL stopping as soon as possible.
|
void |
end()
Finish the reading process (even if
nextEvents() did not returned
false). |
void |
fetchAll(java.net.URL url)
Read the whole URL in one big non-interruptible operation.
|
boolean |
nextEvents()
Try to process one graph event, or as few as possible, if more must be read
at once.
|
addAttributeSink, addElementSink, addSink, clearAttributeSinks, clearElementSinks, clearSinks, removeAttributeSink, removeElementSink, removeSink
void fetchAll(java.net.URL url) throws java.io.IOException
url
- The URL to fetch.java.io.IOException
- If an I/O error occurs while fetching the URL.void begin(java.net.URL url) throws java.io.IOException
nextEvents()
. Once begin() as been
called, you must finish the reading process using end()
. You cannot
call begin() twice without having called end()
in between.url
- The URL to fetch.java.io.IOException
- If an I/O error occurs while reading.boolean nextEvents() throws java.io.IOException
begin(URL)
.
This method return true while there are still events to read.java.io.IOException
- If an I/O error occurs while reading.void end() throws java.io.IOException
nextEvents()
did not returned
false). You must call this method after reading.java.io.IOException
- If an I/O error occurs while closing the file.