Class ModelViewIOKit<M>

    • Constructor Detail

      • ModelViewIOKit

        public ModelViewIOKit​(IOKit<M> modelIOKit)
        Deprecated.
        Constructs a model/view kit from a model's input/output implementation.
        Parameters:
        modelIOKit - The implementation for loading and saving a model.
    • Method Detail

      • getModelIOKit

        protected IOKit<M> getModelIOKit()
        Deprecated.
        Returns:
        The implementation for loading and saving the model.
      • load

        public void load​(ModelView<M> view,
                         java.io.InputStream inputStream,
                         java.net.URI baseURI)
                  throws java.io.IOException
        Deprecated.
        Loads data into a view from an input stream.
        Parameters:
        view - The view into which the data should be loaded.
        inputStream - The input stream from which to read the data.
        baseURI - The base URI of the content, or null if no base URI is available.
        Throws:
        java.io.IOException - Thrown if there is an error reading the data.
      • save

        public void save​(ModelView<M> view,
                         java.io.OutputStream outputStream)
                  throws java.io.IOException
        Deprecated.
        Saves a view to an output stream.

        If saving is successful and the view is Modifiable, the view's modified status is set to false.

        A calling program should first call the view's verify() method to ensure the data is valid and that the model reflects the currently entered data.

        Parameters:
        view - The view the data of which will be written to the given output stream.
        outputStream - The output stream to which to write the model content.
        Throws:
        java.io.IOException - Thrown if there is an error writing the data.
        See Also:
        Modifiable, Verifiable.verify()