Interface IOKit<T>

All Superinterfaces:
URIAccessible, URIInputStreamable, URIOutputStreamable
All Known Implementing Classes:
AbstractIOKit, TextIOKit

public interface IOKit<T> extends URIAccessible
Deprecated.
Provides reading and writing functionality for an object.
Author:
Garret Wilson
  • Method Summary

    Modifier and Type
    Method
    Description
    load(InputStream inputStream, URI baseURI)
    Deprecated.
    Loads an object from an input stream.
    load(URI uri)
    Deprecated.
    Loads an object from a given URI.
    void
    save(T object, OutputStream outputStream)
    Deprecated.
    Saves an object to an output stream.
    void
    save(T object, URI uri)
    Deprecated.
    Saves an object to a given URI.

    Methods inherited from interface com.globalmentor.io.URIInputStreamable

    getInputStream

    Methods inherited from interface com.globalmentor.io.URIOutputStreamable

    getOutputStream
  • Method Details

    • load

      T load(URI uri) throws 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:
      IOException - Thrown if there is an error reading the object.
    • load

      T load(InputStream inputStream, URI baseURI) throws 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:
      IOException - Thrown if there is an error reading the data.
    • save

      void save(T object, URI uri) throws 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:
      IOException - Thrown if there is an error writing the object.
    • save

      void save(T object, OutputStream outputStream) throws 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:
      IOException - Thrown if there is an error writing the object.