|
Public Member Functions |
| | JFile (const JString &filedirname) |
| | ~JFile (void) |
| Object * | clone () const |
| bool | createFile (bool asBinary) |
| bool | createDir (bool recursive=false) |
| bool | openFile (bool asBinary) |
| bool | closeFile () |
| bool | deleteFile (bool force=false) |
| bool | deleteDir (bool recursive=false) |
| bool | move (const JString &newname) |
| bool | lock () |
| bool | unlock () |
| bool | flush () |
| bool | truncate () |
| bool | gotoStart () |
| bool | gotoEnd () |
| bool | gotoPos (int pos) |
| bool | isAtEOF () |
| bool | isInError () |
| bool | isValid () |
| bool | exists () |
| bool | isADir () |
| bool | isAFile () |
| Collection | getFilesInDir () |
| char * | readBinary (int &length) |
| JString | readAscii (int &length) |
| JString | readLine () |
| bool | writeBinary (char *str, int &length) |
| bool | writeAscii (const JString &str) |
| bool | writeLine (const JString &str) |
| int | getSize () |
| bool | isFileReadable () |
| bool | isFileWritable () |
| bool | isFileExecutable () |
| bool | isFileBinary () |
| JTime | getLastAccessTime () |
| JTime | getLastModifyTime () |
| JTime | getCreationTime () |
| JString | getFileNameOnly () |
| JString | getDirNameOnly () |
| JString | getFullPathName () |
| bool | deleteFile (const JString &name) |
| bool | deleteDir (const JString &name) |
| bool | changeAttr (const JString &name, bool read, bool write) |
Static Public Member Functions |
| static JString | readAFileASCII (const JString &name) |
| static char * | readAFileASCII (const JString &name, int &length) |
| static char * | readAFileBinary (const JString &name, int &length) |
| static bool | readAFileASCII (const JString &name, char *data, int &length) |
| static bool | readAFileBinary (const JString &name, char *data, int &length) |
| static bool | writeAFileASCII (const JString &name, const JString &text) |
| static bool | writeAFileASCII (const JString &name, char *str, int length) |
| static bool | writeAFileBinary (const JString &name, char *str, int length) |
| static bool | appendToAFileASCII (const JString &name, const JString &text) |
| static bool | appendToAFileASCII (const JString &name, char *str, int length) |
| static Collection | getFilesInADir (const JString &name) |
| static bool | deleteAFile (const JString &name) |
| static bool | deleteADir (const JString &name, bool recursive) |
| static unsigned long | getAFileSize (const JString &name) |
| static bool | doesAFileExist (const JString &name) |
| static bool | doesADirExist (const JString &name) |
| static bool | moveADir (const JString &from, const JString &to) |
| static bool | moveAFile (const JString &from, const JString &to) |
| static bool | createADir (const JString &fname) |
| static bool | createADir (const JString &fname, bool recursive) |
| static JString | getPathFromFullName (const JString &fname) |
| static JString | getFileNameFromFullName (const JString &fname) |
| static JString | findDirWithFile (Collection &dirs, const JString &filename) |
| static JString | findDirWithFileFullPath (Collection &dirs, const JString &filename) |
Protected Member Functions |
| bool | collectFileInfo () |
Protected Attributes |
| bool | doesExist |
| bool | isDirectory |
| bool | isReadable |
| bool | isWritable |
| bool | isExecutable |
| int | isBinary |
| int | size |
| bool | isEOF |
| JString | name |
| JTime | lastAccessTime |
| JTime | lastModifyTime |
| JTime | creationTime |
| FILE * | fileptr |