The copyFile method of the ClientStore Class contains the following signatures:
copyFile(String curstgfilename, String newstgfilename)
copyFile(String curstgfilename, int curflags, String newstgfilename, int newflags)
Copies the contents of an existing file to a new file, with the same flags set.
public void copyFile(String curstgfilename, String newstgfilename) throws IOException;
curstgfilename | The name of the file to copy from. |
newstgfilename | The name of the newly created file. |
IOException if either one or the other file name is not valid, if curstgfilename cannot be found, or if either file name is a directory.
Copies the contents of an existing files to a new file. If OOPEN_FL_SHARED and OPEN_FL_EXPENDABLE are set for the existing file, the new file will be created with these same flags.
public void copyFile(String curstgfilename, int curflags, String newstgfilename, int newflags) thows IOException;
curstgfilename | The name of the file to copy from. |
curflags | A value that indicates the storage area in which to find curstgfilename. It can be either or both of the STORE_FL_LOCAL and STORE_FL_ROAMING flags. |
newstgfilename | The name of the newly created file. |
newflags | A value that indicates the storage area in which to create newstgfilename. It can be either or both of the following: |
IOException if either one or the other file name is not valid, if curstgfilename cannot be found, or if either file name is a directory.