Top Description Fields Constructors Methods
org.apache.sshd.common.util.io.resource

public abstract Class AbstractIoResource<T>

extends Object
implements IoResource<T>
Class Inheritance
All Implemented Interfaces
org.apache.sshd.common.util.io.resource.IoResource, org.apache.sshd.common.util.io.resource.ResourceStreamProvider, org.apache.sshd.common.NamedResource
Known Direct Subclasses
org.apache.sshd.common.util.io.resource.ClassLoaderResource, org.apache.sshd.common.util.io.resource.PathResource, org.apache.sshd.common.util.io.resource.URIResource, org.apache.sshd.common.util.io.resource.URLResource
Type Parameters
<T>
Type of resource
Imports
java.util.Objects

TODO Add javadoc
Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private final Class<T>
private final T

Constructor Summary

AccessConstructor and Description
protected
AbstractIoResource(Class<T> resourceType, T resourceValue)

Method Summary

Modifier and TypeMethod and Description
public String
public Class<T>
public T
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

resourceTypeback to summary
private final Class<T> resourceType
resourceValueback to summary
private final T resourceValue

Constructor Detail

AbstractIoResourceback to summary
protected AbstractIoResource(Class<T> resourceType, T resourceValue)

Method Detail

getNameback to summary
public String getName()

Implements org.apache.sshd.common.NamedResource.getName.

Returns:String

Doc from org.apache.sshd.common.NamedResource.getName.

The resource name

Annotations
@Override
getResourceTypeback to summary
public Class<T> getResourceType()

Implements org.apache.sshd.common.util.io.resource.IoResource.getResourceType.

Returns:Class<T>

Doc from org.apache.sshd.common.util.io.resource.IoResource.getResourceType.

The type of resource being represented

Annotations
@Override
getResourceValueback to summary
public T getResourceValue()

Implements org.apache.sshd.common.util.io.resource.IoResource.getResourceValue.

Returns:T

Doc from org.apache.sshd.common.util.io.resource.IoResource.getResourceValue.

The resource value serving as basis for the provided data stream

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override