Package totalcross.io
Interface FileStates
-
- All Known Implementing Classes:
File
public interface FileStates
-
-
Field Summary
Fields Modifier and Type Field Description static intCLOSEDstatic intCREATEUsed to create a file if one does not exist; if the file exists, it is not erased, and the mode is changed to READ_WRITE.static intCREATE_EMPTYCreate an empty file; destroys the file if it exists, then the mode is changed to READ_WRITE.static intDONT_OPENThe DONT_OPEN mode allows the exists(), rename(), delete(), listFiles(), createDir(), and isDir() methods to be called without requiring the file to be open for reading or writing.static intINVALIDstatic intREAD_ONLYRead-only open mode.static intREAD_WRITERead-write open mode.
-
-
-
Field Detail
-
INVALID
static final int INVALID
- See Also:
- Constant Field Values
-
DONT_OPEN
static final int DONT_OPEN
The DONT_OPEN mode allows the exists(), rename(), delete(), listFiles(), createDir(), and isDir() methods to be called without requiring the file to be open for reading or writing.- See Also:
#File(String),#File(String,int),#File(String,int,int),#exists(),#rename(String),#delete(),#listFiles(),#createDir(),#isDir(), Constant Field Values
-
READ_WRITE
static final int READ_WRITE
Read-write open mode. Works only for files, must not be used for folders.- See Also:
#File(String,int),#File(String,int,int), Constant Field Values
-
READ_ONLY
static final int READ_ONLY
Read-only open mode. Works only for files, must not be used for folders.- Since:
- TotalCross 1.38
- See Also:
#File(String,int),#File(String,int,int), Constant Field Values
-
CREATE
static final int CREATE
Used to create a file if one does not exist; if the file exists, it is not erased, and the mode is changed to READ_WRITE.- See Also:
#File(String,int),#File(String,int,int), Constant Field Values
-
CREATE_EMPTY
static final int CREATE_EMPTY
Create an empty file; destroys the file if it exists, then the mode is changed to READ_WRITE.- See Also:
#File(String,int),#File(String,int,int), Constant Field Values
-
CLOSED
static final int CLOSED
- See Also:
- Constant Field Values
-
-