package com.mobilejazz.cacheio.mappers; import com.mobilejazz.cacheio.exceptions.SerializerException; import java.io.*; public interface ValueMapper { void write(Object value, OutputStream out) throws SerializerException; <T> T read(Class<T> type, InputStream in) throws SerializerException; }