All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.stanfy.helium.entities.Converter Maven / Gradle / Ivy

There is a newer version: 0.6.0
Show newest version
package com.stanfy.helium.entities;

import com.stanfy.helium.model.Type;

import java.io.IOException;
import java.util.List;

/**
 * Can read/write data of some type with some format.
 * @param  type class
 * @param  output type
 * @param  input type
 */
public interface Converter {

  String getFormat();

  T getType();

  void write(O output, Object value) throws IOException;

  Object read(I input, List errors) throws IOException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy