The renameFile method of the ClientStore Class contains the following signatures:
renameFile(String curstgfilename, String newstgfilename)
renameFile(String curstgfilename, int curflags, String newstgfilename, int newflags)
Gives an existing file a new name, possibly moving it to a new directory.
public void renameFile(String curstgfilename, String newstgfilename) throws IException;
curstgfilename | The file to rename. |
newstgfilename | The new name of the file. |
Throws IOException if any one of the following is true:
Renames and assigns new flags to an existing file.
public void renameFile(String curstgfilename, int curflags, String newstgfilename, int newflags) throw IOException;
curstgfilename | The file to rename. |
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 new name of the file. |
newflags | The new flags that are set for the file. This value can be any combination of the following: |
IOException if one of the following is true: