Class DefaultTypeConverter<O>

java.lang.Object
org.exoplatform.commons.serialization.api.TypeConverter<O,O>
org.exoplatform.commons.serialization.api.DefaultTypeConverter<O>

public class DefaultTypeConverter<O> extends TypeConverter<O,O>
Version:
$Revision$
Author:
Julien Viet
  • Constructor Details

    • DefaultTypeConverter

      public DefaultTypeConverter()
  • Method Details

    • write

      public O write(O input) throws Exception
      Description copied from class: TypeConverter
      Converts an external value to an internal value.
      Specified by:
      write in class TypeConverter<O,O>
      Parameters:
      input - the external value
      Returns:
      the the internal value
      Throws:
      Exception - any conversion exception
    • read

      public O read(O output) throws Exception
      Description copied from class: TypeConverter
      Converts an internal value to an external value.
      Specified by:
      read in class TypeConverter<O,O>
      Parameters:
      output - the internal value
      Returns:
      the external value
      Throws:
      Exception - any conversion exception