|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.io.FileSys
ewe.io.FileBase
ewe.io.File
ewe.io.FileAdapter
ewe.io.EweFile.EweEntryFile
| Field Summary | |
EweFile |
eweFile
|
String |
eweFileName
|
EweFile.EweEntry |
myEntry
|
EweFile.EweEntry |
root
|
boolean |
simulateCanWrite
|
| Fields inherited from class ewe.io.FileSys |
DOS_SYSTEM, MEMORY_SYSTEM, PALM_SYSTEM, UNIX_SYSTEM |
| Fields inherited from interface ewe.io.FilePermissions |
ALL_DOS_FLAGS, ALL_UNIX_PERMISSIONS, FLAG_ARCHIVE, FLAG_HIDDEN, FLAG_READONLY, FLAG_ROM, FLAG_ROMMODULE, FLAG_SYSTEM, GROUP_EXECUTE, GROUP_READ, GROUP_WRITE, OTHER_EXECUTE, OTHER_READ, OTHER_WRITE, OWNER_EXECUTE, OWNER_READ, OWNER_WRITE |
| Constructor Summary | |
EweFile.EweEntryFile(EweFile ef)
Create an EweEntryFile for a particular EweFile. |
|
EweFile.EweEntryFile(EweFile ef,
Handle h)
Create an EweEntryFile for a particular EweFile. |
|
| Method Summary | |
protected void |
endFind(int search)
This tells the File to free all resources associated with the find given the search ID returned by startFind(). |
boolean |
exists()
Returns true if the file exists and false otherwise. |
protected Object |
findNext(int search)
This will find the next file in sequence given the search ID returned by startFind(). |
Object |
getInfo(int value,
Object source,
Object resultDestination,
int options)
This method is used to get extended information about the File or the File system in general. |
int |
getLength()
Returns the length of the file in bytes. |
File |
getNew(File parent,
String file)
Get a new File object given the directory and new path. |
protected void |
getSetModified(Time time,
boolean doGet)
This gets/sets the modified time of the file. |
boolean |
isDirectory()
Returns true if the file is a directory and false otherwise. |
boolean |
isValid()
|
void |
set(File parent,
String file)
This is used to tell the File to represent a different File entity. |
protected int |
startFind(String mask)
This is used as the start point for listing. |
Stream |
toReadableStream()
Create and return a Stream to use for reading from the File. |
| Methods inherited from class ewe.io.FileAdapter |
createDir, delete, doList, getFullPath, getNewInstance, getSetPermissionsAndFlags, listFiles, move, setFullPathName, setInfo, toRandomAccessStream |
| Methods inherited from class ewe.io.File |
deleteOnExit, executeFileChooser, getFileChooserClass, length, nativeGetInfo, nativeSetInfo, setFileChooserClass |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass |
| Field Detail |
public EweFile.EweEntry root
public EweFile.EweEntry myEntry
public EweFile eweFile
public String eweFileName
public boolean simulateCanWrite
| Constructor Detail |
public EweFile.EweEntryFile(EweFile ef)
ef - the EweFile
public EweFile.EweEntryFile(EweFile ef,
Handle h)
ef - the EweFileh - an optional handle that can be used to abort the construction.| Method Detail |
public File getNew(File parent,
String file)
FileBase
getNew in class FileBasepublic boolean isValid()
public boolean exists()
File
exists in class FileAdapterpublic boolean isDirectory()
File
isDirectory in class FileAdapterpublic int getLength()
File
getLength in class FileAdapter
protected void getSetModified(Time time,
boolean doGet)
FileBase
getSetModified in class FileAdapter
public void set(File parent,
String file)
FileAdapter
set in class FileAdapterprotected int startFind(String mask)
FileAdapter
startFind in class FileAdapterprotected Object findNext(int search)
FileAdapter
findNext in class FileAdapterprotected void endFind(int search)
FileAdapter
endFind in class FileAdapter
public Object getInfo(int value,
Object source,
Object resultDestination,
int options)
File
getInfo in class FileAdapter
public Stream toReadableStream()
throws IOException
FileBase
toReadableStream in class FileBaseIOException - if an open stream could not be created.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||