Provides low-level access to various file systems.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
isFileSystemSupported(int fs)
Determines the device supports the specified file system.
static boolean
isSupported()
Determines the device supports one or more file systems.
static void
rename(int fs,
java.lang.String oldFileName,
java.lang.String newFileName)
Renames the specified file.
Field Detail
FILESYSTEM_PATRIOT
public static final int FILESYSTEM_PATRIOT
File system built into iDEN devices.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Method Detail
isSupported
public static final boolean isSupported()
Determines the device supports one or more file systems.
Returns:
True if this device provides access to one or more file systems.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
isFileSystemSupported
public static final boolean isFileSystemSupported(int fs)
Determines the device supports the specified file system.
Parameters:
fs - One of the FILESYSTEM_ values.
Returns:
True if this device provides access to the specified file system.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
delete
public static void delete(int fs,
java.lang.String fileName)
throws java.io.IOException
Deletes the specified file.
Parameters:
fs - One of the FILESYSTEM_ values.
fileName - The name of the file.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
getFileSystemTotalSpace
public static long getFileSystemTotalSpace(int fs)
throws java.io.IOException
Retrieves the total size for the specified filesystem.
Parameters:
fs - One of the FILESYSTEM_ values.
Returns:
The total number of bytes in the filesystem.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
getFileSystemFreeSpace
public static long getFileSystemFreeSpace(int fs)
throws java.io.IOException
Retrieves the free space for the specified filesystem.
Parameters:
fs - One of the FILESYSTEM_ values.
Returns:
The number of available bytes in the filesystem.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
getFileSize
public static long getFileSize(int fs,
java.lang.String fileName)
throws java.io.IOException
Retrieves the size of the specified file.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
findFirst
public static java.lang.String findFirst(int fs,
java.lang.String pattern)
throws java.io.IOException
Finds the first file matching the specified pattern.
Parameters:
fs - One of the FILESYSTEM_ values.
pattern - A pattern to match.
Returns:
The first file which matches the pattern specified, or null if no file matches.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
findNext
public static java.lang.String findNext(int fs)
throws java.io.IOException
Finds the next file matching the specified pattern.
Parameters:
fs - One of the FILESYSTEM_ values.
Returns:
The next file which matches the pattern specified in a previous call to
findFirst, or null if there are no more matches.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Copyright 1999-2005 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved. Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.