Microsoft SDK for Java

ClientStoreFile Class

The ClientStoreFile Class of the com.ms.io.clientstorage package manages and provides access to individual files within client stores.

public class ClientStoreFile extends File
{
  // Constructors
  public ClientStoreFile(String stgfilename) throws IOException;
  public ClientStoreFile(ClientStore store,
        String stgfilename) throws IOException;
  public ClientStoreFile(String stgfilename, int flags)
        throws IOException;
  public ClientStoreFile(ClientStore store, String stgfilename,
        int flags) throws IOException;

  // Methods
  public boolean canRead();
  public boolean canWrite();
  public boolean delete();
  public boolean equals(Object obj);
  public boolean exists();
  public String getAbsolutePath();
  public String getCanonicalPath() throws IOException;
  public boolean isAbsolute();
  public boolean isDirectory();
  public boolean isFile();
  public long lastModified();
  public long length();
  public String[] list();
  public String[] list(FilenameFilter filter);
  public boolean mkdir();
  public boolean mkdirs();
  public InputStream openInputStream() throws IOException;
  public OutputStream openOutputStream() throws IOException;
  public OutputStream openOutputStream(boolean append)
        throws IOException;
  public RandomAccessFile openRandom() throws IOException;
  public RandomAccessFile openRandom(boolean writable)
        throws IOException;
  public boolean renameTo(File dest);
}

Using the methods in this class, you can delete a file, rename it, make a directory for it, determine whether you can read from the file, get the absolute or canonical path for the file, and retrieve other file characteristics.

This class extends the java.io.File class and uses the java.io.File.getPath method to retrieve the pathfor the ClientStoreFile object.

Hierarchy

File
  |
  +--ClientStoreFile

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