Interface IOKit<T>

    • Method Detail

      • load

        T load​(java.net.URI uri)
        throws java.io.IOException
        Deprecated.
        Loads an object from a given URI.
        Parameters:
        uri - The URI that identifies the object to be loaded.
        Returns:
        The object containing the data of the resouce represented by the URI.
        Throws:
        java.io.IOException - Thrown if there is an error reading the object.
      • load

        T load​(java.io.InputStream inputStream,
               java.net.URI baseURI)
        throws java.io.IOException
        Deprecated.
        Loads an object from an input stream.
        Parameters:
        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.
        Returns:
        The object loaded from the given input stream.
        Throws:
        java.io.IOException - Thrown if there is an error reading the data.
      • save

        void save​(T object,
                  java.net.URI uri)
           throws java.io.IOException
        Deprecated.
        Saves an object to a given URI.
        Parameters:
        object - The object the data of which will be saved at the given URI.
        uri - The URI at which the object should be saved.
        Throws:
        java.io.IOException - Thrown if there is an error writing the object.
      • save

        void save​(T object,
                  java.io.OutputStream outputStream)
           throws java.io.IOException
        Deprecated.
        Saves an object to an output stream.
        Parameters:
        object - The object the data of which will be written to the given output stream.
        outputStream - The output stream to which to write the object content.
        Throws:
        java.io.IOException - Thrown if there is an error writing the object.