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

public Interface IoResource<T>

extends NamedResource, ResourceStreamProvider
Known Direct Implementers
org.apache.sshd.common.util.io.resource.AbstractIoResource
Type Parameters
<T>
Type of resource
Imports
java.net.URI, .URL, java.nio.file.Path, org.apache.sshd.common.NamedResource

Author
Apache MINA SSHD Project

Field Summary

Inherited from org.apache.sshd.common.NamedResource:
BY_NAME_COMPARATORNAME_EXTRACTOR

Method Summary

Modifier and TypeMethod and Description
public static IoResource<?>

Returns:

The best wrapper out of the supported ones (null if no initial resource)
forResource
(Object
The resource object - ignored if null
resource
)

Attempts to find the best wrapper for the resource

public Class<T>

Returns:

The type of resource being represented
getResourceType
()

public T

Returns:

The resource value serving as basis for the provided data stream
getResourceValue
()

Inherited from org.apache.sshd.common.NamedResource:
findByNamefindFirstMatchByNamegetNamegetNameListgetNamesofNameremoveByNamesafeCompareByName
Inherited from org.apache.sshd.common.util.io.resource.ResourceStreamProvider:
openInputStream

Method Detail

forResourceback to summary
public static IoResource<?> forResource(Object resource)

Attempts to find the best wrapper for the resource

Parameters
resource:Object

The resource object - ignored if null

Returns:IoResource<?>

The best wrapper out of the supported ones (null if no initial resource)

Exceptions
UnsupportedOperationException:
if no match found
getResourceTypeback to summary
public Class<T> getResourceType()
Returns:Class<T>

The type of resource being represented

getResourceValueback to summary
public T getResourceValue()
Returns:T

The resource value serving as basis for the provided data stream