Interface DOTInputModelDeserializer<S,​I,​M extends SimpleTS<S,​I>>

    • Method Detail

      • readModel

        DOTInputModelData<S,​I,​M> readModel​(InputStream is)
                                                throws IOException
        Description copied from interface: ModelDeserializer
        Reads the contents from the given input stream and de-serializes it into a model instance.

        Note: the input stream will not be closed.

        Specified by:
        readModel in interface ModelDeserializer<S>
        Parameters:
        is - the input stream to read data from
        Returns:
        the de-serialized model
        Throws:
        IOException - if an error occurred while reading from the stream
      • readModel

        default DOTInputModelData<S,​I,​M> readModel​(byte[] buf)
                                                        throws IOException
        Description copied from interface: ModelDeserializer
        Reads the contents from the given byte buffer and de-serializes it into a model instance.
        Specified by:
        readModel in interface ModelDeserializer<S>
        Parameters:
        buf - the buffer to read data from
        Returns:
        the de-serialized model
        Throws:
        IOException - if an error occurred while reading from the stream