Skip navigation links

Package org.gephi.io.exporter.api

API for exporting data to any support.

See: Description

Package org.gephi.io.exporter.api Description

API for exporting data to any support. The API supports File, Writer and OutputStream.

How to export a graph file

ExportController ec = Lookup.getDefault().lookup(ExportController.class);
ec.exportFile(new File("export.gexf"));
        

How to export to a String

ExportController ec = Lookup.getDefault().lookup(ExportController.class);
Exporter exporter = ec.getExporter("gexf");
CharacterExporter characterExporter = (CharacterExporter)exporter;
StringWriter stringWriter = new StringWriter();
ec.exportWriter(stringWriter, characterExporter);
String result = stringWriter.toString();
        
Skip navigation links

Copyright © 2007–2017. All rights reserved.