org.grinvin.io.graphs
Class GraphBundleLoader
java.lang.Object
org.grinvin.io.graphs.GraphBundleLoader
public class GraphBundleLoader
extends java.lang.Object
loadFromDirectory
public static void loadFromDirectory(GraphBundle bundle,
File dir)
throws IOException
Load the bundle from the given directory. The directory should
contain the uncompressed contents of a ZIP-archive.
Note: The preferred representation of graph bundles on disk
is by means of compressed ZIP-archives. This method is provided
primarily for debugging purposes.
bundle
- Empty bundle which will hold the result of the load operation.dir
- Directory which contains the graph bundle as
uncompressed contents of a ZIP-archive.
loadFromZip
public static void loadFromZip(GraphBundle bundle,
File file)
throws IOException
Load the bundle from the given file.
bundle
- Empty bundle which will hold the result of the load operation.file
- File which contains the graph bundle in Zip-format
loadFromZip
public static void loadFromZip(GraphBundle bundle,
InputStream in)
throws IOException
Load the bundle from the given input stream.
bundle
- Empty bundle which will hold the result of the load operation.in
- Input stream which contains the graph bundle in Zip-format