The fileExists method of the ClientStore Class contains the following signatures:
fileExists(String stgfilename)
fileExists(String stgfilename, int flags)
Determines whether the specified file exists.
public boolean fileExists(String stgfilename) throws IOException;
Returns true if the file exists; otherwise, returns false.
stgfilename | The name of the file whose existence is being determined. |
IOException if the specified file is a directory.
Determines whether the specified file exists.
public boolean fileExists(String stgfilename, int flags) throws IOException;
Returns true if the file exists; otherwise, returns false.
stgfilename | The name of the file whose existence is being determined. |
flags | A value that indicates the storage area in which to search for stgfilename. This value should be one or both of the STORE_FL_LOCAL and STORE_FL_ROAMING flags. |