com.ibm.etools.iseries.projects.resources
Class BinaryObjectSaveFileTransfer
java.lang.Object
com.ibm.etools.iseries.subsystems.qsys.resources.SaveFileTransfer
com.ibm.etools.iseries.projects.resources.BinaryObjectSaveFileTransfer
public class BinaryObjectSaveFileTransfer
- extends SaveFileTransfer
Method Summary |
boolean |
deleteTempSavf(String saveFileName)
Deletes temp save file from user temporary directory in the IFS |
File |
downloadSavf(String fullyQualifiedLocalFileName,
String ifsSavfPath,
IProgressMonitor monitor)
Download a save file from IBM i to a workspace file. |
void |
uploadSavf(String fullyQualifiedLocalFileName,
String saveFileName)
Upload a local save file to an IBM i save file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinaryObjectSaveFileTransfer
public BinaryObjectSaveFileTransfer(IBMiConnection connection)
uploadSavf
public void uploadSavf(String fullyQualifiedLocalFileName,
String saveFileName)
throws SystemMessageException
- Upload a local save file to an IBM i save file.
- Parameters:
fullyQualifiedLocalFileName:
- full qualified file name for local save file
- Throws:
SystemMessageException
- if there is any SystemMessage captured during upload
downloadSavf
public File downloadSavf(String fullyQualifiedLocalFileName,
String ifsSavfPath,
IProgressMonitor monitor)
throws SystemMessageException
- Download a save file from IBM i to a workspace file.
If the targetFile exists, its contents are silently replaced. No collision checking.
If the targetFile does not exist, it is created.
If the targetFile's parent does not exist, an exception is thrown if createFolder is false.
- Throws:
SystemMessageException
deleteTempSavf
public boolean deleteTempSavf(String saveFileName)
throws SystemMessageException
- Deletes temp save file from user temporary directory in the IFS
- Parameters:
saveFileName
- Name of the save file to be deleted
- Returns:
- True if delete operation was successful, false if otherwise
- Throws:
SystemMessageException
Copyright © 2011 IBM Corp. All Rights Reserved.
Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.