Microsoft SDK for Java

openReadable

The openReadable method of the ClientStorageManager Class contains the following signatures:

openReadable(String stgfilename, int flags)
openReadable(String stgfilename)

openReadable(String stgfilename, int flags)

Opens a file for reading from the store for the current principal.

Syntax

public static InputStream openReadable(String stgfilename, int flags) throws IOException;

Return Value

Returns the file that is open for reading.

Parameters

stgfilename The name of the file to open.
flags A value that indicates the requested type of file accessibility. It can be any combination of the flags OPEN_FL_SHARED, STORE_FL_ROAMING, or STORE_FL_LOCAL from the ClientStore class.

Exceptions

Throws IOException if the file does not exist or cannot be opened for reading.

openReadable(String stgfilename)

Opens a file for reading from the store for the current principal.

Syntax

public static InputStream openReadable(String stgfilename) throws IOException;

Return Value

Returns the file that is open for reading.

Parameters

stgfilename The name of the file to open.

Exceptions

IOException if the file does not exist or cannot be opened.

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