Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.projects.resources
Class BinaryObjectSaveFileTransfer

java.lang.Object
  extended by com.ibm.etools.iseries.subsystems.qsys.resources.SaveFileTransfer
      extended by com.ibm.etools.iseries.projects.resources.BinaryObjectSaveFileTransfer

public class BinaryObjectSaveFileTransfer
extends SaveFileTransfer


Field Summary
 
Fields inherited from class com.ibm.etools.iseries.subsystems.qsys.resources.SaveFileTransfer
connection, copyright, IFS_SUBSYSTEM_CONFIGURATION_ID
 
Constructor Summary
BinaryObjectSaveFileTransfer(IBMiConnection connection)
           
 
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 com.ibm.etools.iseries.subsystems.qsys.resources.SaveFileTransfer
downloadSavf, getTempFileFor, getTempFileFor, getTempRemotePath, uploadSavf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryObjectSaveFileTransfer

public BinaryObjectSaveFileTransfer(IBMiConnection connection)
Method Detail

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

Rational Developer for Power Systems Software
V7.6

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.