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