The openRandom method of the ClientStorageManager Class contains the following signatures:
openRandom(String stgfilename, boolean writable)
openRandom(String stgfilename)
openRandom(String stgfilename, int flags)
Opens a RandomAccessFile from the store for read or write operations.
public static RandomAccessFile openRandom(String stgfilename, boolean writable) throws IOException;
Returns the RandomAccessFile that is opened.
stgfilename | The name of the file to open. |
writable | Set this value to true if the file should be opened as OPEN_FL_WRITABLE; otherwise, set this value to false. |
IOException if the method fails to open the specified file.
Opens a RandomAccessFile from the store for read operations, with no specified flags.
public static RandomAccessFile openRandom(String stgfilename) throws IOException;
Returns the RandomAccessFile that is opened.
stgfilename | The name of the file to open. |
IOException if the method fails to open the specified file.
Opens a RandomAccessFile from the store for read or write operations.
public static RandomAccessFile openRandom(String stgfilename, int flags) throws IOException;
Returns the RandomAccessFile that is opened.
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 following accessibilities:
OPEN_FL_SHARED |
IOException if the method fails to create or open the specified file.