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

public Class ClassLoaderResource

extends AbstractIoResource<ClassLoader>
Class Inheritance
Imports
java.io.FileNotFoundException, .IOException, .InputStream, .StreamCorruptedException, org.apache.sshd.common.util.ValidateUtils, org.apache.sshd.common.util.threads.ThreadUtils

TODO Add javadoc
Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public
ClassLoaderResource(ClassLoader loader, String resourceName)

Method Summary

Modifier and TypeMethod and Description
public String
public ClassLoader
public InputStream
Inherited from org.apache.sshd.common.util.io.resource.AbstractIoResource:
getResourceTypegetResourceValuetoString

Field Detail

resourceNameback to summary
private final String resourceName

Constructor Detail

ClassLoaderResourceback to summary
public ClassLoaderResource(ClassLoader loader, String resourceName)

Method Detail

getNameback to summary
public String getName()

Overrides org.apache.sshd.common.util.io.resource.AbstractIoResource.getName.

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

Returns:String

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

The resource name

Annotations
@Override
getResourceLoaderback to summary
public ClassLoader getResourceLoader()
openInputStreamback to summary
public InputStream openInputStream() throws IOException

Implements org.apache.sshd.common.util.io.resource.ResourceStreamProvider.openInputStream.

Returns:InputStream

Doc from org.apache.sshd.common.util.io.resource.ResourceStreamProvider.openInputStream.

an InputStream for the resource's data

Annotations
@Override
Exceptions
IOException:

Doc from org.apache.sshd.common.util.io.resource.ResourceStreamProvider.openInputStream.

If failed to open the stream