public interface IFileUtilities
This interface is not intended to be implemented by clients.
| Modifier and Type | Method and Description |
|---|---|
void |
createFile(ISystemImage pImg,
java.lang.String pFileName,
IFileAttributes<?,?> pFileAttributes,
org.eclipse.core.runtime.IProgressMonitor pMon)
Creates a new file on the remote system.
|
void |
deleteDataset(ISystemImage pImage,
java.lang.String pDatasetName,
org.eclipse.core.runtime.IProgressMonitor pMonitor)
Deprecated.
Use the general method
deleteFile(ISystemImage, String, IProgressMonitor)
instead. |
void |
deleteFile(ISystemImage pImage,
java.lang.String pFileName,
org.eclipse.core.runtime.IProgressMonitor pMonitor)
Deletes a file.
|
IRemoteFile[] |
getChildren(ISystemImage pImage,
java.lang.String pResourceName,
java.lang.String pFilter,
org.eclipse.core.runtime.IProgressMonitor pMon)
Gets children of a resource with the option to filter them.
|
java.util.List<java.io.InputStream> |
getContainerContents(ISystemImage pImg,
java.lang.String pContainerName,
org.eclipse.core.runtime.IProgressMonitor pMon)
Returns contents of every child from the given container.
|
IGetDataResponse |
getContents(ISystemImage pImg,
java.lang.String pFileName,
boolean pExclusive,
ERecallMethod pRecall,
org.eclipse.core.runtime.IProgressMonitor pMonitor)
Get contents of a mainframe data set.
|
IFileAttributes<?,?> |
getFileAttributes(ISystemImage pImage,
java.lang.String pFileName,
org.eclipse.core.runtime.IProgressMonitor pMonitor)
Gets the attributes of a file.
|
boolean |
isFileExisting(ISystemImage pImg,
java.lang.String pParmFilePath,
org.eclipse.core.runtime.IProgressMonitor pMon)
Verifies the existence of a file.
|
void |
renameFile(ISystemImage pImage,
java.lang.String pOldName,
java.lang.String pNewName,
org.eclipse.core.runtime.IProgressMonitor pMonitor)
Renames a file.
|
IRemoteFile[] |
resolveFilter(ISystemImage pImage,
java.lang.String pFilter,
org.eclipse.core.runtime.IProgressMonitor pMon)
Returns all files matching the given filter pattern.
|
void |
setContents(ISystemImage pImg,
java.lang.String pFileName,
java.io.InputStream pIS,
org.eclipse.core.runtime.IProgressMonitor pMonitor)
Writes data in a mainframe data set (sequential or member of PDS).
|
IGetDataResponse getContents(ISystemImage pImg, java.lang.String pFileName, boolean pExclusive, ERecallMethod pRecall, org.eclipse.core.runtime.IProgressMonitor pMonitor) throws java.io.IOException
pImg - The remote system imagepFileName - fully qualified file namepExclusive - if true, the user gets exclusive access for the
filepRecall - recall method, if the file on the remote system is migrated (
ERecallMethod.NORECALL, ERecallMethod.WAIT,
ERecallMethod.NOWAIT)pMonitor - progress monitor or nulljava.io.IOException - if an error occurred during the requestvoid setContents(ISystemImage pImg, java.lang.String pFileName, java.io.InputStream pIS, org.eclipse.core.runtime.IProgressMonitor pMonitor) throws java.io.IOException
The data set or the member must already exist.
pImg - The remote system imagepFileName - fully qualified file namepIS - input stream with the content for the data setpMonitor - progress monitor or nulljava.io.IOException - if an error occurred during the requestboolean isFileExisting(ISystemImage pImg, java.lang.String pParmFilePath, org.eclipse.core.runtime.IProgressMonitor pMon) throws java.io.IOException
pImg - The remote system imagepParmFilePath - fully qualified file namepMon - progress monitor or nulltrue if the file exists, otherwise falsejava.io.IOException - if an error occurred during the requestvoid createFile(ISystemImage pImg, java.lang.String pFileName, IFileAttributes<?,?> pFileAttributes, org.eclipse.core.runtime.IProgressMonitor pMon) throws java.io.IOException
pImg - The remote system imagepFileName - fully qualified name of the new filepFileAttributes - attributes of the new filepMon - progress monitorjava.io.IOException - if creating the file failsjava.util.List<java.io.InputStream> getContainerContents(ISystemImage pImg, java.lang.String pContainerName, org.eclipse.core.runtime.IProgressMonitor pMon) throws java.io.IOException
pImg - The remote system imagepContainerName - the fully qualified name of the containerpMon - progress monitorjava.io.IOException - if an I/O exception occursIFileAttributes<?,?> getFileAttributes(ISystemImage pImage, java.lang.String pFileName, org.eclipse.core.runtime.IProgressMonitor pMonitor) throws java.io.IOException
pImage - the remote system imagepFileName - fully qualified file namepMonitor - progress monitorjava.io.IOException - if the file's attributes cannot be obtained for any reason@Deprecated void deleteDataset(ISystemImage pImage, java.lang.String pDatasetName, org.eclipse.core.runtime.IProgressMonitor pMonitor) throws java.io.IOException
deleteFile(ISystemImage, String, IProgressMonitor)
instead.pImage - the remote system imagepDatasetName - the name of the data setpMonitor - progress monitorjava.io.IOException - if an I/O exception occursvoid deleteFile(ISystemImage pImage, java.lang.String pFileName, org.eclipse.core.runtime.IProgressMonitor pMonitor) throws java.io.IOException
pImage - the system image of the filepFileName - fully qualified name of the file to be deletedpMonitor - progress monitorjava.io.IOException - if deleting the file failsvoid renameFile(ISystemImage pImage, java.lang.String pOldName, java.lang.String pNewName, org.eclipse.core.runtime.IProgressMonitor pMonitor) throws java.io.IOException
pImage - The remote system imagepOldName - fully qualified name of the file to renamepNewName - new fully qualified file namepMonitor - progress monitorjava.io.IOException - if an I/O exception occursIRemoteFile[] getChildren(ISystemImage pImage, java.lang.String pResourceName, java.lang.String pFilter, org.eclipse.core.runtime.IProgressMonitor pMon) throws TaurusCoreException
pImage - The remote system imagepResourceName - the fully qualified resource name to get children frompFilter - the filter. Can be null to return all children.pMon - a progress monitornull.TaurusCoreException - if children cannot be obtained for any reasonIRemoteFile[] resolveFilter(ISystemImage pImage, java.lang.String pFilter, org.eclipse.core.runtime.IProgressMonitor pMon) throws TaurusCoreException
pImage - The remote system imagepFilter - the filter patternpMon - a progress monitornull.TaurusCoreException - if children cannot be obtained for any reasonCopyright © 2015 Micro Focus GmbH. All rights reserved.