Microsoft SDK for Java

openRandom

The openRandom method of the ClientStoreFile Class contains the following signatures:

openRandom()
openRandom(boolean writable)

openRandom()

Opens a RandomAccessFile from the store for read operations, with no specified flags.

Syntax

public RandomAccessFile openRandom() throws IOException;

Return Value

Returns the RandomAccessFile that is opened.

Exceptions

IOException if the method fails to open the specified file.

openRandom(boolean writable)

Opens a RandomAccessFile from the store for read or write operations, with no specified flags.

Syntax

public RandomAccessFile openRandom(boolean writable) throws IOException;

Return Value

Returns the RandomAccessFile that is opened.

Parameters

writable Set this value to true if the file should be opened as OPEN_FL_WRITABLE; otherwise, set writable to false.

Exceptions

IOException if the method fails to open the specified file.

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