Class JsonExtendedOptimizationIO<O extends IOptimization,EXT>

java.lang.Object
com.dna.jopt.io.JsonExtendedOptimizationIO<O,EXT>
All Implemented Interfaces:
IOptimizationIO<O>
Direct Known Subclasses:
JsonOptimizationIO

public class JsonExtendedOptimizationIO<O extends IOptimization,EXT> extends Object implements IOptimizationIO<O>
Since:
02/08/2019
Version:
14/10/2019
Author:
DNA
  • Constructor Details

    • JsonExtendedOptimizationIO

      public JsonExtendedOptimizationIO(com.dna.jopt.config.types.ext.IConfigExtensionManifest<O,EXT> manifest, Class<EXT> clazz)
      The constructor for the extended Json IO.
      Parameters:
      manifest - the manifest
      clazz - the clazz
  • Method Details

    • read

      public final O read(InputStream input) throws com.dna.jopt.config.convert.ConvertException, com.dna.jopt.config.serialize.SerializationException, IOException
      Specified by:
      read in interface IOptimizationIO<O extends IOptimization>
      Throws:
      com.dna.jopt.config.convert.ConvertException
      com.dna.jopt.config.serialize.SerializationException
      IOException
    • read

      public final void read(InputStream input, O opti) throws com.dna.jopt.config.convert.ConvertException, com.dna.jopt.config.serialize.SerializationException, IOException
      Specified by:
      read in interface IOptimizationIO<O extends IOptimization>
      Throws:
      com.dna.jopt.config.convert.ConvertException
      com.dna.jopt.config.serialize.SerializationException
      IOException
    • write

      public final void write(OutputStream output, com.dna.jopt.config.convert.ExportTarget<O> target) throws com.dna.jopt.config.convert.ConvertException, com.dna.jopt.config.serialize.SerializationException
      Specified by:
      write in interface IOptimizationIO<O extends IOptimization>
      Throws:
      com.dna.jopt.config.convert.ConvertException
      com.dna.jopt.config.serialize.SerializationException
    • write

      public final void write(OutputStream output, com.dna.jopt.config.convert.ExportTarget<O> target, boolean attachDetails) throws com.dna.jopt.config.convert.ConvertException, com.dna.jopt.config.serialize.SerializationException
      Specified by:
      write in interface IOptimizationIO<O extends IOptimization>
      Throws:
      com.dna.jopt.config.convert.ConvertException
      com.dna.jopt.config.serialize.SerializationException