/** * Copyright (c) 2012 - 2018 Data In Motion and others. * 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: * Data In Motion - initial API and implementation */ package org.gecko.rsa.api; import java.io.InputStream; import org.osgi.util.promise.Promise; /** * * @author mark * @since 07.07.2018 */ public interface DeSerializer { public DeSerializationContext getDeSerializationContext(); public Promise deserialize(InputStream input); public Promise deserialize(InputStream input, C context); }