File Connection API

API call

Permission(s)

javax.microedition.io.Connector.

 

open("file:// ...")

javax.microedition.io.Connector.file.readjavax.microedition.io.Connector.file.write

open("file:// ..., Connector.READ)

javax.microedition.io.Connector.file.read

open("file:// ..., Connector.WRITE)

javax.microedition.io.Connector.file.write

open("file:// ...", Connector.READ_WRITE)

javax.microedition.io.Connector.file.readjavax.microedition.io.Connector.file.write

openDataInputStream("file://...")

javax.microedition.io.Connector.file.read

openDataOutputStream("file://...")

javax.microedition.io.Connector.file.write

openInputStream("file://...")

javax.microedition.io.Connector.file.read

openOutputStream("file://...")

javax.microedition.io.Connector.file.write

javax.microedition.io.file.FileConnection.

 

setFileConnection() // when original was opened in READ MODE

javax.microedition.io.Connector.file.read

setFileConnection() // when original was opened in WRITE MODE

javax.microedition.io.Connector.file.write

setFileConnection() // when original was opened in READ_WRITE MODE

javax.microedition.io.Connector.file.readjavax.microedition.io.Connector.file.write

availableSize()

javax.microedition.io.Connector.file.read

usedSize()

javax.microedition.io.Connector.file.read

directorySize(boolean)

javax.microedition.io.Connector.file.read

fileSize()

javax.microedition.io.Connector.file.read

canRead()

javax.microedition.io.Connector.file.read

canWrite()

javax.microedition.io.Connector.file.read

isHidden()

javax.microedition.io.Connector.file.read

setReadable(boolean)

javax.microedition.io.Connector.file.write

setWritable(boolean)

javax.microedition.io.Connector.file.write

setHidden(boolean)

javax.microedition.io.Connector.file.write

list()

javax.microedition.io.Connector.file.read

list(java.lang.String filter, boolean includeHidden)

javax.microedition.io.Connector.file.read

create()

javax.microedition.io.Connector.file.write

mkdir()

javax.microedition.io.Connector.file.write

exists()

javax.microedition.io.Connector.file.read

isDirectory()

javax.microedition.io.Connector.file.read

delete()

javax.microedition.io.Connector.file.write

rename(java.lang.String)

javax.microedition.io.Connector.file.write

truncate(long)

javax.microedition.io.Connector.file.write

lastModifed()

javax.microedition.io.Connector.file.read

javax.microedition.io.file.FileSystemRegistry.

 

addFileSystemListener()

javax.microedition.io.Connector.file.read

listRoots()

 

Note: Other security restrictions may be imposed on Connector.open(), for example, when accessing critical files.