Package totalcross.io

Interface FileStates

  • All Known Implementing Classes:
    File

    public interface FileStates
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CLOSED  
      static 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.
      static int CREATE_EMPTY
      Create an empty file; destroys the file if it exists, then the mode is changed to READ_WRITE.
      static 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.
      static int INVALID  
      static int READ_ONLY
      Read-only open mode.
      static int READ_WRITE
      Read-write open mode.
    • Field Detail

      • 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