T
- the opType of normalizer this strategy supportspublic interface NormalizerSerializerStrategy<T extends Normalizer>
Modifier and Type | Method and Description |
---|---|
NormalizerType |
getSupportedType()
Get the enum opType of the supported normalizer
|
T |
restore(InputStream stream)
Restore a normalizer that was previously serialized by this strategy
|
void |
write(T normalizer,
OutputStream stream)
Serialize a normalizer to a output stream
|
void write(T normalizer, OutputStream stream) throws IOException
normalizer
- the normalizerstream
- the output stream to write toIOException
T restore(InputStream stream) throws IOException
stream
- the stream to read serialized data fromIOException
NormalizerType getSupportedType()
Normalizer.getType()
Copyright © 2020. All rights reserved.