org.grinvin.io
Class GraphBundleLoader
java.lang.Object
org.grinvin.io.GraphBundleLoader
public class GraphBundleLoader
extends java.lang.Object
load
public static void load(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
load
public static void load(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
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.