public class JSchFileManager extends java.lang.Object implements IRemoteFileService
Modifier and Type | Class and Description |
---|---|
static class |
JSchFileManager.Factory |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseDirectory()
Get the base directory to be used for relative paths.
|
java.lang.String |
getDirectorySeparator()
Gets the directory separator on the target system.
|
IRemoteConnection |
getRemoteConnection() |
org.eclipse.core.filesystem.IFileStore |
getResource(java.lang.String pathStr)
Get the resource associated with path.
|
void |
setBaseDirectory(java.lang.String path)
Set the base directory to be used for relative paths..
|
java.lang.String |
toPath(java.net.URI uri)
Convert URI to a remote path.
|
java.net.URI |
toURI(org.eclipse.core.runtime.IPath path)
Convert remote path to equivalent URI.
|
java.net.URI |
toURI(java.lang.String path)
Convert string representation of a remote path to equivalent URI.
|
public IRemoteConnection getRemoteConnection()
getRemoteConnection
in interface IRemoteConnection.Service
public java.lang.String getDirectorySeparator()
IRemoteFileService
getDirectorySeparator
in interface IRemoteFileService
public org.eclipse.core.filesystem.IFileStore getResource(java.lang.String pathStr)
IRemoteFileService
getResource
in interface IRemoteFileService
pathStr
- path to resourcepublic java.lang.String getBaseDirectory()
IRemoteFileService
getBaseDirectory
in interface IRemoteFileService
public void setBaseDirectory(java.lang.String path)
IRemoteFileService
setBaseDirectory
in interface IRemoteFileService
path
- new base directorypublic java.lang.String toPath(java.net.URI uri)
IRemoteFileService
toPath
in interface IRemoteFileService
public java.net.URI toURI(org.eclipse.core.runtime.IPath path)
IRemoteFileService
toURI
in interface IRemoteFileService
path
- path on remote systempublic java.net.URI toURI(java.lang.String path)
IRemoteFileService
toURI
in interface IRemoteFileService
path
- path on remote system