
org.echocat.jomon.runtime.io.Serializer Maven / Gradle / Ivy
/*****************************************************************************************
* *** BEGIN LICENSE BLOCK *****
*
* Version: MPL 2.0
*
* echocat Jomon, Copyright (c) 2012-2013 echocat
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* *** END LICENSE BLOCK *****
****************************************************************************************/
package org.echocat.jomon.runtime.io;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
public interface Serializer {
@Nullable
public T read(@Nonnull DataInput from) throws IOException;
public void write(@Nullable T value, @Nonnull DataOutput to) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy