Microsoft SDK for Java

getFileSize

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

getFileSize(String stgfilename)
getFileSize(String stgfilename, int flags)

getFileSize(String stgfilename)

Retrieves the size of the specified file, measured in bytes.

Syntax

public long getFileSize(String stgfilename) throws IOException;

Return Value

Returns the size of the file, in bytes.

Parameters

stgfilename The name of the file whose size is being measured.

Exceptions

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

getFileSize(String stgfilename, int flags)

Retrieves the size of the specified file, in bytes.

Syntax

public long getFileSize(String stgfilename, int flags) throws IOException;

Return Value

Returns the size of the file, in bytes.

Parameters

Stgfilename The name of the file whose size is being measured.
Flags A value that indicates the storage area in which to search for stgfilename. It can one or both of the STORE_FL_LOCAL and STORE_FL_ROAMING flags.

Exceptions

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

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