Package com.dna.jopt.io
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>
This class provides
read(InputStream, IOptimization)
and write(OutputStream, ExportTarget)
methods for Json
for IOptimization
.- Since:
- 02/08/2019
- Version:
- 14/10/2019
- Author:
- DNA
-
Constructor Summary
ConstructorDescriptionJsonExtendedOptimizationIO
(com.dna.jopt.config.types.ext.IConfigExtensionManifest<O, EXT> manifest, Class<EXT> clazz) The constructor for the extendedJson
IO. -
Method Summary
Modifier and TypeMethodDescriptionfinal O
read
(InputStream input) final void
read
(InputStream input, O opti) final void
write
(OutputStream output, com.dna.jopt.config.convert.ExportTarget<O> target) final void
write
(OutputStream output, com.dna.jopt.config.convert.ExportTarget<O> target, boolean attachDetails)
-
Constructor Details
-
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 interfaceIOptimizationIO<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 interfaceIOptimizationIO<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 interfaceIOptimizationIO<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 interfaceIOptimizationIO<O extends IOptimization>
- Throws:
com.dna.jopt.config.convert.ConvertException
com.dna.jopt.config.serialize.SerializationException
-