public class StandardizeSerializerStrategy extends Object implements NormalizerSerializerStrategy<NormalizerStandardize>
NormalizerStandardize
instances in single binary filesConstructor and Description |
---|
StandardizeSerializerStrategy() |
Modifier and Type | Method and Description |
---|---|
NormalizerType |
getSupportedType()
Get the enum type of the supported normalizer
|
NormalizerStandardize |
restore(InputStream stream)
Restore a normalizer that was previously serialized by this strategy
|
void |
write(NormalizerStandardize normalizer,
OutputStream stream)
Serialize a normalizer to a output stream
|
public void write(@NonNull NormalizerStandardize normalizer, @NonNull OutputStream stream) throws IOException
NormalizerSerializerStrategy
write
in interface NormalizerSerializerStrategy<NormalizerStandardize>
normalizer
- the normalizerstream
- the output stream to write toIOException
public NormalizerStandardize restore(@NonNull InputStream stream) throws IOException
NormalizerSerializerStrategy
restore
in interface NormalizerSerializerStrategy<NormalizerStandardize>
stream
- the stream to read serialized data fromIOException
public NormalizerType getSupportedType()
NormalizerSerializerStrategy
getSupportedType
in interface NormalizerSerializerStrategy<NormalizerStandardize>
Normalizer.getType()
Copyright © 2017. All rights reserved.