FileConnection Optional Package 1.0
Final Release
A C D E F G I J L M O R S T U

A

addFileSystemListener(FileSystemListener) - Static method in class javax.microedition.io.file.FileSystemRegistry
This method is used to register a FileSystemListener that is notified in case of adding and removing a new file system root.
availableSize() - Method in interface javax.microedition.io.file.FileConnection
Determines the free memory that is available on the file system the file or directory resides on.

C

canRead() - Method in interface javax.microedition.io.file.FileConnection
Checks if the file or directory is readable.
canWrite() - Method in interface javax.microedition.io.file.FileConnection
Checks if the file or directory is writable.
ConnectionClosedException - exception javax.microedition.io.file.ConnectionClosedException.
Represents an exception thrown when a method is invoked on a file connection but the method cannot be completed because the connection is closed.
ConnectionClosedException() - Constructor for class javax.microedition.io.file.ConnectionClosedException
Constructs a new instance of this class with its stack trace filled in.
ConnectionClosedException(String) - Constructor for class javax.microedition.io.file.ConnectionClosedException
Constructs a new instance of this class with its stack trace and message filled in.
create() - Method in interface javax.microedition.io.file.FileConnection
Creates a file corresponding to the file string provided in the Connector.open() method for this FileConnection.

D

delete() - Method in interface javax.microedition.io.file.FileConnection
Deletes the file or directory specified in the Connector.open() URL.
directorySize(boolean) - Method in interface javax.microedition.io.file.FileConnection
Determines the size in bytes on a file system of all of the files that are contained in a directory.

E

exists() - Method in interface javax.microedition.io.file.FileConnection
Checks if the file or directory specified in the URL passed to the Connector.open() method exists.

F

FileConnection - interface javax.microedition.io.file.FileConnection.
This interface is intended to access files or directories that are located on removeable media and/or file systems on a device.
fileSize() - Method in interface javax.microedition.io.file.FileConnection
Determines the size of a file on the file system.
FileSystemListener - interface javax.microedition.io.file.FileSystemListener.
This class is used for receiving status notification when adding or removing a file system root.
FileSystemRegistry - class javax.microedition.io.file.FileSystemRegistry.
The FileSystemRegistry is a central registry for file system listeners interested in the adding and removing (or mounting and unmounting) of file systems on a device.

G

getName() - Method in interface javax.microedition.io.file.FileConnection
Returns the name of a file or directory excluding the URL schema and all paths.
getPath() - Method in interface javax.microedition.io.file.FileConnection
Returns the path excluding the file or directory name and the "file" URL schema and host from where the file or directory specified in the Connector.open() method is opened.
getURL() - Method in interface javax.microedition.io.file.FileConnection
Returns the full file URL including the scheme, host, and path from where the file or directory specified in the Connector.open() method is opened.

I

IllegalModeException - exception javax.microedition.io.file.IllegalModeException.
Represents an exception thrown when a method is invoked requiring a particular security mode (e.g.
IllegalModeException() - Constructor for class javax.microedition.io.file.IllegalModeException
Constructs a new instance of this class with its stack trace filled in.
IllegalModeException(String) - Constructor for class javax.microedition.io.file.IllegalModeException
Constructs a new instance of this class with its stack trace and message filled in.
isDirectory() - Method in interface javax.microedition.io.file.FileConnection
Checks if the URL passed to the Connector.open() is a directory.
isHidden() - Method in interface javax.microedition.io.file.FileConnection
Checks if the file is hidden.
isOpen() - Method in interface javax.microedition.io.file.FileConnection
Returns an indication of whether the file connection is currently open or not.

J

javax.microedition.io.file - package javax.microedition.io.file
This package describes file system access support based on the Generic Connection Framework.

L

lastModified() - Method in interface javax.microedition.io.file.FileConnection
Returns the time that the file denoted by the URL specified in the Connector.open() method was last modified.
list() - Method in interface javax.microedition.io.file.FileConnection
Gets a list of all visible files and directories contained in a directory.
list(String, boolean) - Method in interface javax.microedition.io.file.FileConnection
Gets a filtered list of files and directories contained in a directory.
listRoots() - Static method in class javax.microedition.io.file.FileSystemRegistry
This method returns the currently mounted root file systems on a device as String objects in an Enumeration.

M

mkdir() - Method in interface javax.microedition.io.file.FileConnection
Creates a directory corresponding to the directory string provided in the Connector.open() method.

O

openDataInputStream() - Method in interface javax.microedition.io.file.FileConnection
Open and return a data input stream for a connection.
openDataOutputStream() - Method in interface javax.microedition.io.file.FileConnection
Open and return a data output stream for a connection.
openInputStream() - Method in interface javax.microedition.io.file.FileConnection
Open and return an input stream for a connection.
openOutputStream() - Method in interface javax.microedition.io.file.FileConnection
Open and return an output stream for a connection.
openOutputStream(long) - Method in interface javax.microedition.io.file.FileConnection
This method opens an output stream and positions it at the indicated byte offset in the file.

R

removeFileSystemListener(FileSystemListener) - Static method in class javax.microedition.io.file.FileSystemRegistry
This method is used to remove a registered FileSystemListener.
rename(String) - Method in interface javax.microedition.io.file.FileConnection
Renames the selected file or directory to a new name in the same directory.
ROOT_ADDED - Static variable in interface javax.microedition.io.file.FileSystemListener
Constant indicating that a file system root has been added to the device.
ROOT_REMOVED - Static variable in interface javax.microedition.io.file.FileSystemListener
Constant indicating that a file system root has been removed from the device.
rootChanged(int, String) - Method in interface javax.microedition.io.file.FileSystemListener
This method is invoked when a root on the device has changed state.

S

setFileConnection(String) - Method in interface javax.microedition.io.file.FileConnection
Resets this FileConnection object to another file or directory.
setHidden(boolean) - Method in interface javax.microedition.io.file.FileConnection
Sets the hidden attribute of the selected file to the value provided.
setReadable(boolean) - Method in interface javax.microedition.io.file.FileConnection
Sets the file or directory readable attribute to the indicated value.
setWritable(boolean) - Method in interface javax.microedition.io.file.FileConnection
Sets the selected file or directory writable attribute to the indicated value.

T

totalSize() - Method in interface javax.microedition.io.file.FileConnection
Determines the total size of the file system the connection's target resides on.
truncate(long) - Method in interface javax.microedition.io.file.FileConnection
Truncates the file, discarding all data from the given byte offset to the current end of the file.

U

usedSize() - Method in interface javax.microedition.io.file.FileConnection
Determines the used memory of a file system the connection's target resides on.

A C D E F G I J L M O R S T U
Final Release
Rev. 1.00

Copyright © 2002-2004 PalmSource, Inc. All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.