com.sentilla.platform.tmote
Class FlashFileDriver
java.lang.Object
com.sentilla.system.DriverAdapter
com.sentilla.system.FileDriver
com.sentilla.platform.tmote.FlashFileDriver
- All Implemented Interfaces:
- Driver
public class FlashFileDriver
- extends FileDriver
Tmote extension of FileDriver.
Method Summary |
com.sentilla.io.RandomAccessFile |
createFile(int filename)
Create a new file. |
String |
getDriverName(int n)
Returns the valid name(s) for
each driver. |
com.sentilla.io.RandomAccessFile |
openFile(int filename)
Open an existing file. |
void |
removeFile(int filename)
Remove a file. |
FlashFileDriver
public FlashFileDriver()
openFile
public com.sentilla.io.RandomAccessFile openFile(int filename)
- Description copied from class:
FileDriver
- Open an existing file.
- Specified by:
openFile
in class FileDriver
- Parameters:
filename
- the 32-bit filename to open
- Returns:
- a new RandomAccessFile
createFile
public com.sentilla.io.RandomAccessFile createFile(int filename)
- Description copied from class:
FileDriver
- Create a new file.
- Specified by:
createFile
in class FileDriver
- Parameters:
filename
- the 32-bit filename to create
- Returns:
- a new RandomAccessFile
removeFile
public void removeFile(int filename)
- Description copied from class:
FileDriver
- Remove a file.
- Specified by:
removeFile
in class FileDriver
- Parameters:
filename
- the 32-bit filename to remove
getDriverName
public String getDriverName(int n)
- Description copied from class:
DriverAdapter
- Returns the valid name(s) for
each driver. If a driver has N-names, then
getDriverName
returns a
string for n=0 to n=N-1, and returns null for all other values of n.
A driver may return multiple names because it provides the default
implementation for a specific name, such as associating "flash" by
default to the external flash, or "extflash" if an application
specifically asserts it requires the external flash resources. Some
drivers may return only a single valid name, such as "intflash" for
the internal flash.
- Specified by:
getDriverName
in interface Driver
- Specified by:
getDriverName
in class DriverAdapter
Copyright © 2007 Sentilla Corporation. All Rights Reserved.