Package org.graphstream.stream.file
Class FileSinkFactory
java.lang.Object
org.graphstream.stream.file.FileSinkFactory
public class FileSinkFactory extends Object
Try to instantiate the correct writer given a graph filename.
This class tries to instantiate a writer given a filename. Actually it purely tries to analyze the extension and propose the writer according to this extension.
-
Constructor Summary
Constructors Constructor Description FileSinkFactory() -
Method Summary
-
Constructor Details
-
FileSinkFactory
public FileSinkFactory()
-
-
Method Details
-
sinkFor
Looks at the file name given and its extension and propose a file output for the format that match this extension.- Parameters:
filename- The file name where the graph will be written.- Returns:
- A file sink or null.
-