public class FileSourceDGS extends FileSourceParser
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/
The usual file name extension used for this format is ".dgs".FileSource
SourceBase.ElementType
factory, parser
attrSinks, eltsSinks, eventProcessing, eventQueue, sourceId, sourceTime
Constructor and Description |
---|
FileSourceDGS() |
Modifier and Type | Method and Description |
---|---|
protected java.io.Reader |
createReaderForFile(java.lang.String filename) |
ParserFactory |
getNewParserFactory()
Get a new parser factory.
|
boolean |
nextStep()
Since there is no step in DOT, this does the same action than
FileSourceParser.nextEvents() . |
begin, begin, begin, begin, end, nextEvents, readAll, readAll, readAll, readAll
addAttributeSink, addElementSink, addSink, attributeSinks, clearAttributeSinks, clearElementSinks, clearSinks, elementSinks, manageEvents, 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, sendStepBegins
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAttributeSink, addElementSink, addSink, clearAttributeSinks, clearElementSinks, clearSinks, removeAttributeSink, removeElementSink, removeSink
public ParserFactory getNewParserFactory()
FileSourceParser
getNewParserFactory
in class FileSourceParser
public boolean nextStep() throws java.io.IOException
FileSourceParser
FileSourceParser.nextEvents()
.nextStep
in interface FileSource
nextStep
in class FileSourceParser
java.io.IOException
- If an I/O error occurs while reading.protected java.io.Reader createReaderForFile(java.lang.String filename) throws java.io.IOException
createReaderForFile
in class FileSourceParser
java.io.IOException