Package org.gephi.graph.dhns.utils

Examples of org.gephi.graph.dhns.utils.DataSerializer


@ServiceProvider(service = WorkspacePersistenceProvider.class, position = 12000)
public class DataPersistenceProvider implements WorkspacePersistenceProvider {

    public void writeXML(XMLStreamWriter writer, Workspace workspace) {
        Dhns dhns = workspace.getLookup().lookup(Dhns.class);
        DataSerializer serializer = new DataSerializer();
        try {
            serializer.writeData(writer, dhns);
        } catch (XMLStreamException ex) {
            throw new RuntimeException(ex);
        }
    }
View Full Code Here


        }
    }

    public void readXML(XMLStreamReader reader, Workspace workspace) {
        Dhns dhns = workspace.getLookup().lookup(Dhns.class);
        DataSerializer serializer = new DataSerializer();
        try {
            serializer.readData(reader, dhns);
        } catch (XMLStreamException ex) {
            throw new RuntimeException(ex);
        }
    }
View Full Code Here

TOP

Related Classes of org.gephi.graph.dhns.utils.DataSerializer

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.