Package com.globalmentor.io
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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description T
load(java.io.InputStream inputStream, java.net.URI baseURI)
Deprecated.Loads an object from an input stream.T
load(java.net.URI uri)
Deprecated.Loads an object from a given URI.void
save(T object, java.io.OutputStream outputStream)
Deprecated.Saves an object to an output stream.void
save(T object, java.net.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 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, ornull
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.
-
-