Interface NormalizerSerializerStrategy<T extends Normalizer>
-
- All Known Implementing Classes:
CustomSerializerStrategy
,ImagePreProcessingSerializerStrategy
,MinMaxSerializerStrategy
,MultiHybridSerializerStrategy
,MultiMinMaxSerializerStrategy
,MultiStandardizeSerializerStrategy
,StandardizeSerializerStrategy
public interface NormalizerSerializerStrategy<T extends Normalizer>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NormalizerType
getSupportedType()
Get the enum opType of the supported normalizerT
restore(InputStream stream)
Restore a normalizer that was previously serialized by this strategyvoid
write(T normalizer, OutputStream stream)
Serialize a normalizer to a output stream
-
-
-
Method Detail
-
write
void write(T normalizer, OutputStream stream) throws IOException
Serialize a normalizer to a output stream- Parameters:
normalizer
- the normalizerstream
- the output stream to write to- Throws:
IOException
-
restore
T restore(InputStream stream) throws IOException
Restore a normalizer that was previously serialized by this strategy- Parameters:
stream
- the stream to read serialized data from- Returns:
- the restored normalizer
- Throws:
IOException
-
getSupportedType
NormalizerType getSupportedType()
Get the enum opType of the supported normalizer- Returns:
- the enum opType
- See Also:
Normalizer.getType()
-
-