Microsoft SDK for Java

openReadable

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

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

openReadable(String stgfilename, int flags)

Opens an existing file for reading.

Syntax

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

Return Value

Returns the input stream that is open for reading.

Parameters

stgfilename The name of the file to open for reading.
flags A value that indicates the requested type of file accessibility. It can be one or both of STORE_FL_ROAMING and STORE_FL_LOCAL.

Exceptions

IOException if the method fails to create the file or if there is an error while attempting to truncate an existing file.

openReadable(String stgfilename)

Opens an existing file for reading.

Syntax

public InputStream openReadable(String stgfilename) throws IOException;

Return Value

Returns the input stream that is open for reading.

Parameters

stgfilename The name of the file to open for reading.

Exceptions

IOException if the method fails to create the file or if there is an error while attempting to truncate an existing file.

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