Class URIResource
- java.lang.Object
-
- org.apache.sshd.common.util.io.resource.AbstractIoResource<URI>
-
- org.apache.sshd.common.util.io.resource.URIResource
-
- All Implemented Interfaces:
NamedResource,IoResource<URI>,ResourceStreamProvider
public class URIResource extends AbstractIoResource<URI>
- 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 URIResource(URI uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URIgetURI()InputStreamopenInputStream()-
Methods inherited from class org.apache.sshd.common.util.io.resource.AbstractIoResource
getName, getResourceType, getResourceValue, toString
-
-
-
-
Constructor Detail
-
URIResource
public URIResource(URI uri)
-
-
Method Detail
-
getURI
public URI getURI()
-
openInputStream
public InputStream openInputStream() throws IOException
- Returns:
- an
InputStreamfor the resource's data - Throws:
IOException- If failed to open the stream
-
-