|
|||||||||
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 | |
---|---|
java.lang.String |
getComputerName()
|
java.io.File |
getLocation(long location_id)
Get a well-known location, if defined for the platform |
boolean |
isAdditionalFileTypeRegistered(java.lang.String name,
java.lang.String type)
Checks to see if the supplied file type is registered with this application |
void |
registerAdditionalFileType(java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String content_type)
Registers a file type with this application |
void |
showFile(java.lang.String file_name)
Reveals the file or directory with the platform's default browser |
void |
unregisterAdditionalFileType(java.lang.String name,
java.lang.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(java.lang.String name, java.lang.String type) throws PlatformManagerException
name
- type
-
PlatformManagerException
void registerAdditionalFileType(java.lang.String name, java.lang.String description, java.lang.String type, java.lang.String content_type) throws PlatformManagerException
name
- description
- type
- content_type
-
PlatformManagerException
void unregisterAdditionalFileType(java.lang.String name, java.lang.String type) throws PlatformManagerException
name
- type
-
PlatformManagerException
void showFile(java.lang.String file_name) throws PlatformManagerException
file_name
- The full path to a file or directory
PlatformManagerException
- If this operation failsjava.io.File getLocation(long location_id) throws PlatformManagerException
location_id
- from above LOC_constants
PlatformManagerException
java.lang.String getComputerName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |