org.graphstream.stream.file
Class FileSinkFactory

java.lang.Object
  extended by 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
FileSinkFactory()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSinkFactory

public FileSinkFactory()
Method Detail

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.


Copyright © 2012. All Rights Reserved.