public class ImagePreProcessingSerializerStrategy extends Object implements NormalizerSerializerStrategy<ImagePreProcessingScaler>
| Constructor and Description |
|---|
ImagePreProcessingSerializerStrategy() |
| Modifier and Type | Method and Description |
|---|---|
NormalizerType |
getSupportedType()
Get the enum opType of the supported normalizer
|
ImagePreProcessingScaler |
restore(InputStream stream)
Restore a normalizer that was previously serialized by this strategy
|
void |
write(ImagePreProcessingScaler normalizer,
OutputStream stream)
Serialize a normalizer to a output stream
|
public ImagePreProcessingSerializerStrategy()
public void write(ImagePreProcessingScaler normalizer, OutputStream stream) throws IOException
NormalizerSerializerStrategywrite in interface NormalizerSerializerStrategy<ImagePreProcessingScaler>normalizer - the normalizerstream - the output stream to write toIOExceptionpublic ImagePreProcessingScaler restore(InputStream stream) throws IOException
NormalizerSerializerStrategyrestore in interface NormalizerSerializerStrategy<ImagePreProcessingScaler>stream - the stream to read serialized data fromIOExceptionpublic NormalizerType getSupportedType()
NormalizerSerializerStrategygetSupportedType in interface NormalizerSerializerStrategy<ImagePreProcessingScaler>Normalizer.getType()Copyright © 2021. All rights reserved.