Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix ] Distribution Issues

    All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.jconfig.nix.FSCreatorNix

    java.lang.Object
       |
       +----com.jconfig.nix.FSCreatorNix

Summary

    class  FSCreatorNix
         extends java.lang.Object
    {
              // Fields 4
         static final int FS_TOTAL_CAP_INFO_LEN;
         static final int FS_TOTAL_CAP_OFFSET;
         static final int FS_TOTAL_FREE_SPACE_OFFSET;
         private static final String copyrightString;

              // Constructors 1
         public FSCreatorNix();

              // Methods 4
         static FileSystem getFileFileSystem(String, int);
         static int getFileSystemTotalCapInfo(long[]);
         static FileSystem[] getFileSystems(int, int);
         static FileSystem getVolumeFileSystem(String, int);

    }

Returns:

- a list of all the mounted file systems
- the file system which contains a given file/folder
- the file system which contains a given volume
- the total space on all mounted file systems

Author:
  Copyright (c) 1997,1998,1999,2000 Samizdat Productions. All Rights Reserved.

Fields

### · copyrightString | Summary | Top

       private static final String copyrightString

### · FS_TOTAL_CAP_INFO_LEN | Summary | Top

       static final int FS_TOTAL_CAP_INFO_LEN

> The minimum length of the array passed to getFileSystemTotalCapInfo

### · FS_TOTAL_CAP_OFFSET | Summary | Top

       static final int FS_TOTAL_CAP_OFFSET

> On return from getFileSystemTotalCapInfo, the offset of the total capacity

### · FS_TOTAL_FREE_SPACE_OFFSET | Summary | Top

       static final int FS_TOTAL_FREE_SPACE_OFFSET

> On return from getFileSystemTotalCapInfo, the offset of the total free space

Constructors

### · FSCreatorNix | Summary | Top

       public FSCreatorNix()

> Default constructor

Methods

### · getFileSystems | Summary | Top

       static FileSystem[] getFileSystems(int maxToReturn,
                                          int flags)

> Returns a list of the mounted file systems, or null if an error occurs.

> Parameter | Description
> flags | ignored; set to 0

### · getFileFileSystem | Summary | Top

       static FileSystem getFileFileSystem(String path,
                                           int flags)

> Returns the FileSystem on which a file is located, or null if an error occurs. After getting the dev ID of the file, we get a list of the FileSystems, and search through the list looking for a file system which matches that dev ID

> Parameter | Description
> filePath | the full path of the file
> flags | ignored; set to 0

### · getVolumeFileSystem | Summary | Top

       static FileSystem getVolumeFileSystem(String driveName,
                                             int flags)

> Returns the FileSystem on which a volume is located. Calls through to getFileFileSystem.

### · getFileSystemTotalCapInfo | Summary | Top

       static int getFileSystemTotalCapInfo(long[] capInfo)

> Sums up the capacity and free space on all file systems.

    All Packages  This Package  Class Hierarchy  Class Search  Index

Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7