|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface URLSource
Graph event input source from an URL.
Method Summary | |
---|---|
void |
begin(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(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. |
Methods inherited from interface org.graphstream.stream.Source |
---|
addAttributeSink, addElementSink, addSink, clearAttributeSinks, clearElementSinks, clearSinks, removeAttributeSink, removeElementSink, removeSink |
Method Detail |
---|
void fetchAll(URL url) throws IOException
url
- The URL to fetch.
IOException
- If an I/O error occurs while fetching the URL.void begin(URL url) throws 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.
IOException
- If an I/O error occurs while reading.boolean nextEvents() throws IOException
begin(URL)
. This method return true while there are still events
to read.
IOException
- If an I/O error occurs while reading.void end() throws IOException
nextEvents()
did not
returned false). You must call this method after reading.
IOException
- If an I/O error occurs while closing the file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |