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

public Class PathResource

extends AbstractIoResource<Path>
Class Inheritance
Imports
java.io.IOException, .InputStream, java.nio.file.Files, .OpenOption, .Path, org.apache.sshd.common.util.io.IoUtils

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private final OpenOption[]

Constructor Summary

AccessConstructor and Description
public
public
PathResource(Path path, OpenOption... openOptions)

Method Summary

Modifier and TypeMethod and Description
public OpenOption[]
public Path
public InputStream
Inherited from org.apache.sshd.common.util.io.resource.AbstractIoResource:
getNamegetResourceTypegetResourceValuetoString

Field Detail

openOptionsback to summary
private final OpenOption[] openOptions

Constructor Detail

PathResourceback to summary
public PathResource(Path path)
PathResourceback to summary
public PathResource(Path path, OpenOption... openOptions)

Method Detail

getOpenOptionsback to summary
public OpenOption[] getOpenOptions()
getPathback to summary
public Path getPath()
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