public class SimpleFileOpenerImpl
extends java.lang.Object
implements hec.appInterface.FileOpener
| Constructor and Description |
|---|
SimpleFileOpenerImpl() |
| Modifier and Type | Method and Description |
|---|---|
Identifier |
createFile(Identifier fileToCreateId)
Creates the file specified by fileToCreateId.
|
java.util.List |
getDriveList()
return a List of drives on the machine
|
java.util.List |
getFileList(java.lang.String path,
java.lang.String filter)
Return a List of files in the directory path that matches the filter filter.
|
boolean |
lockFile(Identifier id,
FileLock flock) |
Identifier |
openFile(Identifier fileToOpenId,
boolean useCache)
Opens the file specified by fileToOpenId.
|
boolean |
unlockFile(Identifier id,
FileLock flock) |
public Identifier openFile(Identifier fileToOpenId, boolean useCache)
hec.appInterface.FileOpeneropenFile in interface hec.appInterface.FileOpenerfileToOpenId - the file to openuseCache - true if the file should be downloaded to the cache directory and then readhec.io.HecFile attached or null if the file doesn't existpublic Identifier createFile(Identifier fileToCreateId)
hec.appInterface.FileOpenercreateFile in interface hec.appInterface.FileOpenerfileToCreateId - the file to openhec.io.HecFile attached or null if the file existspublic boolean lockFile(Identifier id, FileLock flock)
lockFile in interface hec.appInterface.FileOpenerpublic boolean unlockFile(Identifier id, FileLock flock)
unlockFile in interface hec.appInterface.FileOpenerpublic java.util.List getFileList(java.lang.String path,
java.lang.String filter)
hec.appInterface.FileOpenergetFileList in interface hec.appInterface.FileOpenerpath - the directory to get the List of files fromfilter - the file name filterpublic java.util.List getDriveList()
hec.appInterface.FileOpenergetDriveList in interface hec.appInterface.FileOpener