Package org.gephi.graph.store

Examples of org.gephi.graph.store.Serialization


    @Override
    public void writeBytes(DataOutputStream stream, Workspace workspace) {
        GraphModelImpl model = workspace.getLookup().lookup(GraphModelImpl.class);
        if (model != null) {
            try {
                Serialization serialization = new Serialization(model.getStore());
                serialization.serializeGraphStore(stream);
            } catch (IOException ex) {
                Logger.getLogger("").log(Level.SEVERE, "", ex.getCause());
            }
        }
    }
View Full Code Here


    @Override
    public void readBytes(DataInputStream stream, Workspace workspace) {
        GraphModelImpl model = workspace.getLookup().lookup(GraphModelImpl.class);
        if (model != null) {
            try {
                Serialization serialization = new Serialization(model.getStore());
                serialization.deserializeGraphStore(stream);
            } catch (Exception ex) {
                Logger.getLogger("").log(Level.SEVERE, "", ex.getCause());
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.gephi.graph.store.Serialization

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.