The ClientStorageManager Class of the com.ms.io.clientstorage package manages the allocation of client stores.
public class ClientStorageManager { // Methods public static ClientStorageManager getStorageManager(); public static ClientStore getStore() throws IOException; public ClientStore getStoreForPrincipal(Principal principal, ClientStoragePermission data) throws IOException; public ClientStore getStoreFromContext() throws IOException; public static RandomAccessFile openRandom(String stgfilename, boolean writable) throws IOException; public static RandomAccessFile openRandom( String stgfilename) throws IOException; public static RandomAccessFile openRandom(String stgfilename, int flags) throws IOException; public static InputStream openReadable(String stgfilename, int flags) throws IOException; public static InputStream openReadable( String stgfilename) throws IOException; public static OutputStream openWritable(String stgfilename, int flags) throws IOException; public static OutputStream openWritable( String stgfilename) throws IOException; public static OutputStream openWritable(String stgfilename, boolean append) throws IOException; }
The methods of the ClientStorageManager class enable you to obtain the store for a specified principal, get the shared store, or obtain the store for the currently executing principal. You can also open a file for reading or writing, and specify flags that determine the accessibility type. Enforcement of storage limitations for each principal is performed by the ClientStore class.