|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.dctl.hardware.flash.FlashFile
Provide access to a flash file
| Constructor Summary | |
FlashFile(java.lang.String name)
Create a new file |
|
| Method Summary | |
boolean |
createNewFile()
Create a new file atomically |
static FlashFile |
createTempFile(java.lang.String prefix,
java.lang.String suffix)
Create a temporary file |
boolean |
delete()
Delete the file |
boolean |
equals(FlashFile other)
Return true if this is equal to another file |
boolean |
exists()
Return true if the file exists |
static void |
format()
Format the flash file system |
java.lang.String |
getName()
Get the name of the file |
long |
length()
Get the length of the file |
static java.lang.String[] |
list()
List all the files available |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FlashFile(java.lang.String name)
name - The name| Method Detail |
public boolean createNewFile()
throws IOException
IOException - if there was an error creating it
public static FlashFile createTempFile(java.lang.String prefix,
java.lang.String suffix)
throws IOException
prefix - The prefixsuffix - The suffix
IOException - if the file could not be createdpublic boolean delete()
public boolean equals(FlashFile other)
other - The other file
public boolean exists()
public java.lang.String getName()
public long length()
public static java.lang.String[] list()
public static void format()
throws IOException
IOException
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||