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

public Class URLResource

extends AbstractIoResource<URL>
Class Inheritance
Imports
java.io.IOException, .InputStream, java.net.URL

Author
Apache MINA SSHD Project

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

URLResourceback to summary
public URLResource(URL url)

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
getURLback to summary
public URL getURL()
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