Package com.globalmentor.io
Class DefaultURIAccessible
java.lang.Object
com.globalmentor.beans.BoundPropertyObject
com.globalmentor.io.DefaultURIAccessible
- All Implemented Interfaces:
PropertyBindable
,PropertyConstrainable
,URIAccessible
,URIInputStreamable
,URIOutputStreamable
- Direct Known Subclasses:
AbstractIOKit
,AbstractViewIOKit
,URIAccessibleModel
Deprecated.
Default implementation of a class that allows access to resources by providing input streams and indicating a base URI against which relative URIs should be
resolved.
- Author:
- Garret Wilson
-
Field Summary
Fields inherited from class com.globalmentor.beans.BoundPropertyObject
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
-
Constructor Summary
ModifierConstructorDescriptionDeprecated.Default constructor.DefaultURIAccessible
(URIInputStreamable uriInputStreamable) Deprecated.URI input stream locator constructor.protected
DefaultURIAccessible
(URIInputStreamable uriInputStreamable, URIOutputStreamable uriOutputStreamable) Deprecated.Full constructor.DefaultURIAccessible
(URIOutputStreamable uriOutputStreamable) Deprecated.URI output stream locator constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic URIAccessible
Deprecated.getInputStream
(URI uri) Deprecated.Returns an input stream for the given URI.getOutputStream
(URI uri) Deprecated.Returns an output stream for the given URI.char[]
Deprecated.Deprecated.void
setPassword
(char[] password) Deprecated.Sets the user password.void
setUsername
(String username) Deprecated.Sets the username.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
-
Constructor Details
-
DefaultURIAccessible
public DefaultURIAccessible()Deprecated.Default constructor. -
DefaultURIAccessible
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.
-
DefaultURIAccessible
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.
-
DefaultURIAccessible
protected DefaultURIAccessible(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
-
getUsername
Deprecated.- Returns:
- The username, or
null
for no user information.
-
setUsername
Deprecated.Sets the username.- Parameters:
username
- The username, ornull
for no user information.
-
getPassword
public char[] getPassword()Deprecated.- Returns:
- The user password, or
null
for no user information.
-
setPassword
public void setPassword(char[] password) Deprecated.Sets the user password.- Parameters:
password
- The user password, ornull
for no user information.
-
getDefaultURIAccessible
Deprecated.- Returns:
- The lazily-created singleton default instance of a default implementation with no base URI and default stream access.
-
getInputStream
Deprecated.Returns an input stream for the given URI. The calling class has the responsibility for closing the input stream.- Specified by:
getInputStream
in interfaceURIInputStreamable
- Parameters:
uri
- A URI to a resource.- Returns:
- An input stream to the contents of the resource represented by the given URI.
- Throws:
IOException
- Thrown if an I/O error occurred.
-
getOutputStream
Deprecated.Returns an output stream for the given URI. The calling class has the responsibility for closing the output stream.- Specified by:
getOutputStream
in interfaceURIOutputStreamable
- Parameters:
uri
- A URI to a resource.- Returns:
- An output stream to the contents of the resource represented by the given URI.
- Throws:
IOException
- Thrown if an I/O error occurred.
-