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 Details

  • Method Details

    • sinkFor

      public static FileSink sinkFor​(String filename)
      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.