Interface NormalizerSerializerStrategy<T extends Normalizer>

    • Method Detail

      • write

        void write​(T normalizer,
                   OutputStream stream)
            throws IOException
        Serialize a normalizer to a output stream
        Parameters:
        normalizer - the normalizer
        stream - 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