|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.stream.SourceBase
org.graphstream.stream.file.FileSourceBase
org.graphstream.stream.file.dgs.OldFileSourceDGS
public class OldFileSourceDGS
Class responsible for parsing files in the DGS format.
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
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.graphstream.stream.SourceBase |
---|
SourceBase.ElementType |
Constructor Summary | |
---|---|
OldFileSourceDGS()
New reader for the DGS graph file format version 3. |
Method Summary | |
---|---|
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()
Try to process all the events occurring during one time step. |
Methods inherited from class org.graphstream.stream.file.FileSourceBase |
---|
addAttributeClass, end, readAll, readAll, readAll, readAll |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.graphstream.stream.Source |
---|
addAttributeSink, addElementSink, addSink, clearAttributeSinks, clearElementSinks, clearSinks, removeAttributeSink, removeElementSink, removeSink |
Constructor Detail |
---|
public OldFileSourceDGS()
Method Detail |
---|
public boolean nextEvents() throws IOException
FileSource
FileSource.begin(InputStream)
or FileSource.begin(String)
before. This method
return true while there are still events to read.
nextEvents
in interface FileSource
nextEvents
in class FileSourceBase
IOException
- If an I/O error occurs while reading.public boolean nextStep() throws IOException
FileSource
IOException
- If an I/O error occurs while reading.public void begin(String filename) throws IOException
FileSource
FileSource.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 FileSource
begin
in class FileSourceBase
filename
- Name of the file to read.
IOException
- If an I/O error occurs while reading.public void begin(URL url) throws IOException
FileSource
FileSource.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 FileSource
begin
in class FileSourceBase
url
- The URL of the file to read.
IOException
- If an I/O error occurs while reading.public void begin(InputStream stream) throws IOException
FileSource
FileSource.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 FileSource
begin
in class FileSourceBase
stream
- The input stream to use for reading.
IOException
- If an I/O error occurs while reading.public void begin(Reader reader) throws IOException
FileSource
FileSource.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 FileSource
begin
in class FileSourceBase
reader
- The file reader to use.
IOException
- If an I/O error occurs while reading.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |