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
public abstract class AbstractIOKit<T> extends DefaultURIAccessible implements IOKit<T>
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
Constructors Constructor Description AbstractIOKit()
Deprecated.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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description T
load(java.net.URI uri)
Deprecated.Loads an object from given URI.void
save(T object, java.net.URI uri)
Deprecated.Saves an object to a given URI.-
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 Detail
-
AbstractIOKit
public AbstractIOKit()
Deprecated.Default constructor.
-
AbstractIOKit
public AbstractIOKit(URIInputStreamable uriInputStreamable)
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
public AbstractIOKit(URIOutputStreamable uriOutputStreamable)
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 Detail
-
load
public T load(java.net.URI uri) throws java.io.IOException
Deprecated.Loads an object from given URI.This version opens a stream and delegates to
load(InputStream, URI)
.
-
save
public void save(T object, java.net.URI uri) throws java.io.IOException
Deprecated.Saves an object to a given URI.This version opens a stream and delegates to
save(T, OutputStream)
.
-
-