Microsoft SDK for Java

isFile

The isFile method of the ClientStore Class contains the following signatures:

isFile(String stgfilename)
isFile(String stgfilename, int flags)

isFile(String stgfilename)

Determines whether the specified file is a "normal" file. A file is normal if it is not a directory and if it satisfies other system-dependent criteria. Any non-directory file created by a Java application is guaranteed to be a normal file.

Syntax

public boolean isFile(String stgfilename) throws IOException;

Return Value

Returns true if the file is normal; otherwise, returns false.

Parameters

stgfilename The name of the file.

isFile(String stgfilename, int flags)

Determines whether the specified file is a "normal" file. A file is normal if it is not a directory and if it satisfies other system-dependent criteria. Any non-directory file created by a Java application is guaranteed to be a normal file.

Syntax

public boolean isFile(String stgfilename, int flags) throws IOException;

Return Value

Returns true if the file is normal; otherwise, returns false.

Parameters

stgfilename The name of the file.
flags A value that indicates the storage area in which to search for stgfilename. It can be one or both of the STORE_FL_LOCAL and STORE_FL_ROAMING flags.

Exceptions

IOException if the file name is not valid or if the file cannot be found.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.