public class FileSourceDGS1And2 extends FileSourceBase
The DGS file format is especially designed for storing dynamic graph definitions into a file. More information about the DGS file format will be found on the GraphStream web site: http://graphstream-project.org/
OldFileSourceDGS,
FileSourceSourceBase.ElementType| Constructor and Description |
|---|
FileSourceDGS1And2()
New reader for the DGS graph file format versions 1 and 2.
|
| Modifier and Type | Method and Description |
|---|---|
void |
begin(InputStream stream)
Begin reading the file stopping as soon as possible.
|
void |
begin(Reader reader)
Begin reading the file stopping as soon as possible.
|
void |
begin(String filename)
Begin reading the file stopping as soon as possible.
|
void |
begin(URL url)
Begin reading the file stopping as soon as possible.
|
boolean |
nextEvents()
Try to process one graph event, or as few as possible, if more must be
read at once.
|
boolean |
nextStep()
tries to read all the events between 2 steps
|
addAttributeClass, end, readAll, readAll, readAll, readAlladdAttributeSink, addElementSink, addSink, attributeSinks, clearAttributeSinks, clearElementSinks, clearSinks, elementSinks, removeAttributeSink, removeElementSink, removeSink, sendAttributeChangedEvent, sendAttributeChangedEvent, sendEdgeAdded, sendEdgeAdded, sendEdgeAttributeAdded, sendEdgeAttributeAdded, sendEdgeAttributeChanged, sendEdgeAttributeChanged, sendEdgeAttributeRemoved, sendEdgeAttributeRemoved, sendEdgeRemoved, sendEdgeRemoved, sendGraphAttributeAdded, sendGraphAttributeAdded, sendGraphAttributeChanged, sendGraphAttributeChanged, sendGraphAttributeRemoved, sendGraphAttributeRemoved, sendGraphCleared, sendGraphCleared, sendNodeAdded, sendNodeAdded, sendNodeAttributeAdded, sendNodeAttributeAdded, sendNodeAttributeChanged, sendNodeAttributeChanged, sendNodeAttributeRemoved, sendNodeAttributeRemoved, sendNodeRemoved, sendNodeRemoved, sendStepBegins, sendStepBeginsequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAttributeSink, addElementSink, addSink, clearAttributeSinks, clearElementSinks, clearSinks, removeAttributeSink, removeElementSink, removeSinkpublic FileSourceDGS1And2()
public boolean nextEvents()
throws IOException
FileSourceFileSource.begin(InputStream) or FileSource.begin(String) before. This method
return true while there are still events to read.nextEvents in interface FileSourcenextEvents in class FileSourceBaseIOException - If an I/O error occurs while reading.public boolean nextStep()
throws IOException
IOException - If an I/O error occurs while reading.public void begin(String filename) throws IOException
FileSourceFileSource.nextEvents() or
FileSource.nextStep(). Once begin() has been called, you must finish the
reading process using FileSource.end(). You cannot call begin() twice
without having called FileSource.end() in between.begin in interface FileSourcebegin in class FileSourceBasefilename - Name of the file to read.IOException - If an I/O error occurs while reading.public void begin(InputStream stream) throws IOException
FileSourceFileSource.nextEvents() or
FileSource.nextStep(). Once begin() has been called, you must finish the
reading process using FileSource.end(). You cannot call begin() twice
without having called FileSource.end() in between.begin in interface FileSourcebegin in class FileSourceBasestream - The input stream to use for reading.IOException - If an I/O error occurs while reading.public void begin(Reader reader) throws IOException
FileSourceFileSource.nextEvents() or
FileSource.nextStep(). Once begin() has been called, you must finish the
reading process using FileSource.end(). You cannot call begin() twice
without having called FileSource.end() in between.begin in interface FileSourcebegin in class FileSourceBasereader - The file reader to use.IOException - If an I/O error occurs while reading.public void begin(URL url) throws IOException
FileSourceFileSource.nextEvents() or
FileSource.nextStep(). Once begin() has been called, you must finish the
reading process using FileSource.end(). You cannot call begin() twice
without having called FileSource.end() in between.begin in interface FileSourcebegin in class FileSourceBaseurl - The URL of the file to read.IOException - If an I/O error occurs while reading.Copyright © 2015. All rights reserved.