Package com.globalmentor.io
Interface IOKit<T>
- All Superinterfaces:
URIAccessible
,URIInputStreamable
,URIOutputStreamable
- All Known Implementing Classes:
AbstractIOKit
,TextIOKit
Deprecated.
Provides reading and writing functionality for an object.
- Author:
- Garret Wilson
-
Method Summary
Modifier and TypeMethodDescriptionload
(InputStream inputStream, URI baseURI) Deprecated.Loads an object from an input stream.Deprecated.Loads an object from a given URI.void
save
(T object, OutputStream outputStream) Deprecated.Saves an object to an output stream.void
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
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
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, ornull
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
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
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.
-