Class AbstractIoResource<T>
java.lang.Object
org.apache.sshd.common.util.io.resource.AbstractIoResource<T>
- Type Parameters:
T- Type of resource
- All Implemented Interfaces:
NamedResource,IoResource<T>,ResourceStreamProvider
- Direct Known Subclasses:
ClassLoaderResource,PathResource,URIResource,URLResource
TODO Add javadoc
-
Field Summary
FieldsFields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractIoResource(Class<T> resourceType, T resourceValue) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.sshd.common.util.io.resource.ResourceStreamProvider
openInputStream
-
Field Details
-
resourceType
-
resourceValue
-
-
Constructor Details
-
AbstractIoResource
-
-
Method Details
-
getResourceType
- Specified by:
getResourceTypein interfaceIoResource<T>- Returns:
- The type of resource being represented
-
getResourceValue
- Specified by:
getResourceValuein interfaceIoResource<T>- Returns:
- The resource value serving as basis for the provided data stream
-
getName
- Specified by:
getNamein interfaceNamedResource- Returns:
- The resource name
-
toString
-