Class SIFreader
java.lang.Object
org.graffiti.plugin.io.AbstractInputSerializer
de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.importers.text_list.SIFreader
- All Implemented Interfaces:
InputSerializer
,Serializer
public class SIFreader extends AbstractInputSerializer
edges in list form S I T (Source Interaction Type Target) ===== n1 i1 n2 n2
i1 n3 n3 i2 n1
- Author:
- Christian Klukas
-
Constructor Summary
Constructors Constructor Description SIFreader()
-
Method Summary
Modifier and Type Method Description String[]
getExtensions()
The file extensions the serializer can read or write.String[]
getFileTypeDescriptions()
The file type descriptions of the files the serializer can read or write.void
read(InputStream in, Graph g)
Reads in a graph from the given input stream.void
read(Reader reader, Graph g)
void
read(String filename, Graph g)
Reads in a graph from the given filename.Methods inherited from class org.graffiti.plugin.io.AbstractInputSerializer
read, read, validFor
-
Constructor Details
-
SIFreader
public SIFreader()
-
-
Method Details
-
read
Description copied from class:AbstractInputSerializer
Reads in a graph from the given filename.- Specified by:
read
in interfaceInputSerializer
- Overrides:
read
in classAbstractInputSerializer
- Parameters:
filename
- The name of the file to read the graph from.g
- The graph to add the newly read graph to.- Throws:
IOException
- If an IO error occurs.
-
read
Description copied from class:AbstractInputSerializer
Reads in a graph from the given input stream.- Specified by:
read
in interfaceInputSerializer
- Specified by:
read
in classAbstractInputSerializer
- Parameters:
in
- The input stream to read the graph from.g
- The graph to add the newly read graph to.- Throws:
IOException
- If an IO error occurs.
-
getExtensions
Description copied from interface:Serializer
The file extensions the serializer can read or write.- Returns:
- DOCUMENT ME!
-
getFileTypeDescriptions
Description copied from interface:Serializer
The file type descriptions of the files the serializer can read or write.- Returns:
- DOCUMENT ME!
-
read
- Throws:
Exception
-