fr.inria.atlanmod.neoemf.data.berkeleydb.serializer.ClassInfoSerializer.java Source code

Java tutorial

Introduction

Here is the source code for fr.inria.atlanmod.neoemf.data.berkeleydb.serializer.ClassInfoSerializer.java

Source

/*
 * Copyright (c) 2013-2016 Atlanmod INRIA LINA Mines Nantes.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Atlanmod INRIA LINA Mines Nantes - initial API and implementation
 */
package fr.inria.atlanmod.neoemf.data.berkeleydb.serializer;

import fr.inria.atlanmod.neoemf.data.structure.ClassInfo;
import org.apache.commons.lang3.SerializationUtils;

public class ClassInfoSerializer {

    public static byte[] serialize(ClassInfo ci) {
        return SerializationUtils.serialize(ci);
    }

    public static ClassInfo deserialize(byte[] data) {
        return (ClassInfo) SerializationUtils.deserialize(data);
    }
}