Package com.globalmentor.io
Class AbstractIOKit<T>
java.lang.Object
com.globalmentor.beans.BoundPropertyObject
com.globalmentor.io.DefaultURIAccessible
com.globalmentor.io.AbstractIOKit<T>
- All Implemented Interfaces:
PropertyBindable
,PropertyConstrainable
,IOKit<T>
,URIAccessible
,URIInputStreamable
,URIOutputStreamable
- Direct Known Subclasses:
TextIOKit
Deprecated.
Abstract implementation of reading and writing functionality for an object.
- Author:
- Garret Wilson
-
Field Summary
Fields inherited from class com.globalmentor.beans.BoundPropertyObject
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
-
Constructor Summary
ConstructorDescriptionDeprecated.Default constructor.AbstractIOKit
(URIInputStreamable uriInputStreamable) Deprecated.URI input stream locator constructor.AbstractIOKit
(URIInputStreamable uriInputStreamable, URIOutputStreamable uriOutputStreamable) Deprecated.Full constructor.AbstractIOKit
(URIOutputStreamable uriOutputStreamable) Deprecated.URI output stream locator constructor. -
Method Summary
Methods inherited from class com.globalmentor.io.DefaultURIAccessible
getDefaultURIAccessible, getInputStream, getOutputStream, getPassword, getUsername, setPassword, setUsername
Methods inherited from class com.globalmentor.beans.BoundPropertyObject
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.globalmentor.io.URIInputStreamable
getInputStream
Methods inherited from interface com.globalmentor.io.URIOutputStreamable
getOutputStream
-
Constructor Details
-
AbstractIOKit
public AbstractIOKit()Deprecated.Default constructor. -
AbstractIOKit
Deprecated.URI input stream locator constructor.- Parameters:
uriInputStreamable
- The implementation to use for accessing a URI for input, ornull
if the default implementation should be used.
-
AbstractIOKit
Deprecated.URI output stream locator constructor.- Parameters:
uriOutputStreamable
- The implementation to use for accessing a URI for output, ornull
if the default implementation should be used.
-
AbstractIOKit
public AbstractIOKit(URIInputStreamable uriInputStreamable, URIOutputStreamable uriOutputStreamable) Deprecated.Full constructor.- Parameters:
uriInputStreamable
- The implementation to use for accessing a URI for input, ornull
if the default implementation should be used.uriOutputStreamable
- The implementation to use for accessing a URI for output, ornull
if the default implementation should be used.
-
-
Method Details
-
load
Deprecated.Loads an object from given URI.This version opens a stream and delegates to
load(InputStream, URI)
.- Specified by:
load
in interfaceIOKit<T>
- Parameters:
uri
- The URI that identifies the resource to be loaded.- Returns:
- An object containing the data of the resouce represented by the URI.
- Throws:
IOException
- Thrown if there is an error reading the object.
-
save
Deprecated.Saves an object to a given URI.This version opens a stream and delegates to
save(T, OutputStream)
.- Specified by:
save
in interfaceIOKit<T>
- 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.
-