@PublicAPI
public interface RemoteSpace
Modifier and Type | Method and Description |
---|---|
void |
deleteFile(String remotePath)
Delete the given file or folder(including its content) inside the remote space
|
void |
deleteFiles(String remotePath,
String pattern)
Delete the remote files described by the given pattern
The following special characters can be used inside the pattern :
** matches zero or more directories * matches zero or more characters ? matches one character |
InputStream |
getInputStream(String remotePath)
Returns an input stream on the specified remote file.
|
OutputStream |
getOutputStream(String remotePath)
Returns an output stream on the specified remote file.
|
List<String> |
getSpaceURLs()
Returns the URLs of the RemoteSpace
|
List<String> |
listFiles(String remotePath,
String pattern)
List the content of the given remote directory, using a glob pattern
|
File |
pullFile(String remotePath,
File localPath)
Pull the given file or folder(including its content) from the remote space to the local space
|
Set<File> |
pullFiles(String remotePath,
String pattern,
File localPath)
Pull the remote files described by the given pattern to the local space
The following special characters can be used inside the pattern :
** matches zero or more directories * matches zero or more characters ? matches one character |
void |
pushFile(File localPath,
String remotePath)
Push the given file or directory(including its content) from the local space to the remote space.
|
void |
pushFiles(File localDirectory,
String pattern,
String remotePath)
Push the local files described by the given pattern to the remote space
The following special characters can be used inside the pattern :
** matches zero or more directories * matches zero or more characters ? matches one character |
List<String> listFiles(String remotePath, String pattern) throws FileSystemException
The following special characters can be used inside the pattern :
** matches zero or more directories
* matches zero or more characters
? matches one character
remotePath
- path in the RemoteSpace where files should be listed. Use "." for remote root path.pattern
- pattern to locate filesFileSystemException
void pushFile(File localPath, String remotePath) throws FileSystemException
localPath
- path to the local file or directoryremotePath
- path in the RemoteSpace where to put the file or folder. Use "." for remote root path.FileSystemException
void pushFiles(File localDirectory, String pattern, String remotePath) throws FileSystemException
localDirectory
- local directory used as basepattern
- pattern to locate files inside the localDirectoryremotePath
- path in the RemoteSpace where to put the files. Use "." for remote root path.FileSystemException
File pullFile(String remotePath, File localPath) throws FileSystemException
remotePath
- path to the remote file (relative to the RemoteSpace root)localPath
- path in the local file system where to put the file or folderFileSystemException
Set<File> pullFiles(String remotePath, String pattern, File localPath) throws FileSystemException
remotePath
- path in the RemoteSpace used as base for the pattern (e.g. "/")pattern
- pattern to locate files inside the RemoteSpacelocalPath
- path in the local file system where to put the filesFileSystemException
void deleteFile(String remotePath) throws FileSystemException
remotePath
- path to the remote file (relative to the RemoteSpace root) to deleteFileSystemException
void deleteFiles(String remotePath, String pattern) throws FileSystemException
remotePath
- path in the RemoteSpace used as base for the pattern (e.g. "/")pattern
- pattern to locate files inside the RemoteSpaceFileSystemException
List<String> getSpaceURLs() throws NotConnectedException, PermissionException, FileSystemException
NotConnectedException
PermissionException
FileSystemException
InputStream getInputStream(String remotePath) throws FileSystemException
remotePath
- path to the remote fileFileSystemException
OutputStream getOutputStream(String remotePath) throws FileSystemException
remotePath
- path to the remote fileFileSystemException