|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PlatformManager
Field Summary | |
---|---|
static int |
LOC_DOCUMENTS
|
static int |
LOC_MUSIC
|
static int |
LOC_USER_DATA
|
static int |
LOC_VIDEO
|
Method Summary | |
---|---|
String |
getComputerName()
|
File |
getLocation(long location_id)
Get a well-known location, if defined for the platform |
boolean |
isAdditionalFileTypeRegistered(String name,
String type)
Checks to see if the supplied file type is registered with this application |
void |
registerAdditionalFileType(String name,
String description,
String type,
String content_type)
Registers a file type with this application |
void |
showFile(String file_name)
Reveals the file or directory with the platform's default browser |
void |
unregisterAdditionalFileType(String name,
String type)
Removes a file-type registration |
Field Detail |
---|
static final int LOC_USER_DATA
static final int LOC_MUSIC
static final int LOC_DOCUMENTS
static final int LOC_VIDEO
Method Detail |
---|
boolean isAdditionalFileTypeRegistered(String name, String type) throws PlatformManagerException
name
- type
-
PlatformManagerException
void registerAdditionalFileType(String name, String description, String type, String content_type) throws PlatformManagerException
name
- description
- type
- content_type
-
PlatformManagerException
void unregisterAdditionalFileType(String name, String type) throws PlatformManagerException
name
- type
-
PlatformManagerException
void showFile(String file_name) throws PlatformManagerException
file_name
- The full path to a file or directory
PlatformManagerException
- If this operation failsFile getLocation(long location_id) throws PlatformManagerException
location_id
- from above LOC_constants
PlatformManagerException
String getComputerName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |