|
RSE Release 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.rse.services.files.AbstractFileService
public abstract class AbstractFileService
| Field Summary | |
|---|---|
static int |
FILE_TYPE_FILES
|
static int |
FILE_TYPE_FILES_AND_FOLDERS
|
static int |
FILE_TYPE_FOLDERS
|
| Constructor Summary | |
|---|---|
AbstractFileService()
|
|
| Method Summary | |
|---|---|
boolean |
deleteBatch(String[] remoteParents,
String[] fileNames,
IProgressMonitor monitor)
Deletes a set of files or folders on the host. |
String |
getEncoding(IProgressMonitor monitor)
Returns the local platform encoding by default. |
IHostFile[] |
getFiles(String remoteParent,
String fileFilter,
IProgressMonitor monitor)
|
IHostFile[] |
getFilesAndFolders(String parentPath,
String fileFilter,
IProgressMonitor monitor)
|
IHostFile[] |
getFolders(String remoteParent,
String fileFilter,
IProgressMonitor monitor)
|
InputStream |
getInputStream(String remoteParent,
String remoteFile,
boolean isBinary,
IProgressMonitor monitor)
The default implementation returns null. |
SystemMessage |
getMessage(String messageID)
Dummy impl for now |
OutputStream |
getOutputStream(String remoteParent,
String remoteFile,
boolean isBinary,
IProgressMonitor monitor)
The default implementation returns null. |
protected abstract IHostFile[] |
internalFetch(String parentPath,
String fileFilter,
int fileType,
IProgressMonitor monitor)
|
protected boolean |
isRightType(int fileType,
IHostFile node)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.rse.services.files.IFileService |
|---|
copy, copyBatch, createFile, createFolder, delete, download, getFile, getRoots, getUserHome, isCaseSensitive, move, rename, rename, setLastModified, setReadOnly, upload, upload |
| Methods inherited from interface org.eclipse.rse.services.IService |
|---|
getDescription, getName, initService, uninitService |
| Field Detail |
|---|
public static final int FILE_TYPE_FILES_AND_FOLDERS
public static final int FILE_TYPE_FILES
public static final int FILE_TYPE_FOLDERS
| Constructor Detail |
|---|
public AbstractFileService()
| Method Detail |
|---|
public IHostFile[] getFiles(String remoteParent,
String fileFilter,
IProgressMonitor monitor)
throws SystemMessageException
getFiles in interface IFileServiceremoteParent - - the name of the parent directory on the remote file
system from which to retrieve the child list.fileFilter - - a string that can be used to filter the children. Only
those files matching the filter make it into the list. The interface
does not dictate where the filtering occurs.monitor - the monitor for this potentially long running operation
SystemMessageException - if an error occurs.
Typically this would be one of those in the RemoteFileException family.
public IHostFile[] getFolders(String remoteParent,
String fileFilter,
IProgressMonitor monitor)
throws SystemMessageException
getFolders in interface IFileServiceremoteParent - - the name of the parent directory on the remote file
system from which to retrieve the child list.fileFilter - - a string that can be used to filter the children. Only
those files matching the filter make it into the list. The interface
does not dictate where the filtering occurs.monitor - the monitor for this potentially long running operation
SystemMessageException - if an error occurs.
Typically this would be one of those in the RemoteFileException family.
public IHostFile[] getFilesAndFolders(String parentPath,
String fileFilter,
IProgressMonitor monitor)
throws SystemMessageException
getFilesAndFolders in interface IFileServiceparentPath - - the name of the parent directory on the remote file
system from which to retrieve the child list.fileFilter - - a string that can be used to filter the children. Only
those files matching the filter make it into the list. The interface
does not dictate where the filtering occurs.monitor - the monitor for this potentially long running operation
SystemMessageException - if an error occurs.
Typically this would be one of those in the RemoteFileException family.
protected abstract IHostFile[] internalFetch(String parentPath,
String fileFilter,
int fileType,
IProgressMonitor monitor)
throws SystemMessageException
SystemMessageException
protected boolean isRightType(int fileType,
IHostFile node)
public SystemMessage getMessage(String messageID)
getMessage in interface IService
public boolean deleteBatch(String[] remoteParents,
String[] fileNames,
IProgressMonitor monitor)
throws SystemMessageException
IFileService
deleteBatch in interface IFileServiceremoteParents - the array of folders containing the files to deletefileNames - the names of the files or folders to deletemonitor - the progress monitor
SystemMessageException - if an error occurs.
Typically this would be one of those in the RemoteFileException family.
public String getEncoding(IProgressMonitor monitor)
throws SystemMessageException
getEncoding in interface IFileServicemonitor - the progress monitor.
SystemMessageException - if an error occurs.IFileService.getEncoding(org.eclipse.core.runtime.IProgressMonitor)
public InputStream getInputStream(String remoteParent,
String remoteFile,
boolean isBinary,
IProgressMonitor monitor)
throws SystemMessageException
null. Clients can override to return an input stream to the file.
getInputStream in interface IFileServiceremoteParent - the absolute path of the parent.remoteFile - the name of the remote file.isBinary - true if the file is a binary file, false otherwise.monitor - the progress monitor.
SystemMessageException - if an error occurs.IFileService.getInputStream(String, String, boolean, IProgressMonitor)
public OutputStream getOutputStream(String remoteParent,
String remoteFile,
boolean isBinary,
IProgressMonitor monitor)
throws SystemMessageException
null. Clients can override to return an output stream to the file.
getOutputStream in interface IFileServiceremoteParent - the absolute path of the parent.remoteFile - the name of the remote file.isBinary - true if the file is a binary file, false otherwise.monitor - the progress monitor.
SystemMessageException - if an error occurs.IFileService.getOutputStream(String, String, boolean, IProgressMonitor)
|
RSE Release 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||