Class URLResource
- java.lang.Object
-
- org.apache.sshd.common.util.io.resource.AbstractIoResource<URL>
-
- org.apache.sshd.common.util.io.resource.URLResource
-
- All Implemented Interfaces:
NamedResource,IoResource<URL>,ResourceStreamProvider
public class URLResource extends AbstractIoResource<URL>
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Constructor Summary
Constructors Constructor Description URLResource(URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()URLgetURL()InputStreamopenInputStream()-
Methods inherited from class org.apache.sshd.common.util.io.resource.AbstractIoResource
getResourceType, getResourceValue, toString
-
-
-
-
Constructor Detail
-
URLResource
public URLResource(URL url)
-
-
Method Detail
-
getURL
public URL getURL()
-
getName
public String getName()
- Specified by:
getNamein interfaceNamedResource- Overrides:
getNamein classAbstractIoResource<URL>- Returns:
- The resource name
-
openInputStream
public InputStream openInputStream() throws IOException
- Returns:
- an
InputStreamfor the resource's data - Throws:
IOException- If failed to open the stream
-
-