|
|
|
|
|
|
Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::io::FileInfo Class Reference#include <FileInfo.h>
Inheritance diagram for acdk::io::FileInfo:
List of all members.
Detailed Description
Hold logical information of a file Important: The information about the file is cached and may get out of sync with the read file information.
|
Public Member Functions |
| FileInfo () |
| FileInfo (IN(RFileInfo) other) |
| FileInfo (IN(RString) path) |
| FileInfo (int fiflags, IN(RString) parent, IN(RString) filename, jlong filesize=0, jlong creat=0, jlong modif=0) |
RString | getPath () |
bool | exists () |
void | exists (bool b) |
| does only modify information, not underlying file
|
bool | canRead () |
void | canRead (bool b) |
| does only modify information, not underlying file
|
bool | canWrite () |
void | canWrite (bool b) |
| does only modify information, not underlying file
|
bool | isDirectory () |
void | isDirectory (bool b) |
| does only modify information, not underlying file
|
bool | isFile () |
void | isFile (bool b) |
| does only modify information, not underlying file
|
bool | isHidden () |
void | isHidden (bool b) |
| does only modify information, not underlying file
|
bool | isChecked () |
void | isChecked (bool b) |
| does only modify information, not underlying file
|
RString | toString () |
| return a string representation of this object Object::toString() return getName() by default
|
void | dump (IN(::acdk::io::RPrintWriter) out) |
bool | equals (IN(RFileInfo) other) |
bool | equals (IN(acdk::lang::Object) other) |
| Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.
|
int | compareTo (IN(RFileInfo) other) |
int | compareTo (IN(acdk::lang::Object) other) |
Static Public Member Functions |
RString | flagString (int flags) |
| render the flags to a string, where each file flags is represented by a character
|
RString | timeToString (jlong time) |
| uses acdk::util::SysDate to render Time string
|
Public Attributes |
int | flags |
RString | dir |
RString | name |
jlong | size |
jlong | created |
jlong | modified |
jlong | digest |
| hash value of content of file?
|
Constructor & Destructor Documentation
acdk::io::FileInfo::FileInfo |
( |
|
) |
[inline] |
|
acdk::io::FileInfo::FileInfo |
( |
IN(RFileInfo) |
other |
) |
[inline] |
|
acdk::io::FileInfo::FileInfo |
( |
IN(RString) |
path |
) |
|
|
acdk::io::FileInfo::FileInfo |
( |
int |
fiflags, |
|
|
IN(RString) |
parent, |
|
|
IN(RString) |
filename, |
|
|
jlong |
filesize = 0, |
|
|
jlong |
creat = 0, |
|
|
jlong |
modif = 0 |
|
) |
[inline] |
|
Member Function Documentation
void acdk::io::FileInfo::canRead |
( |
bool |
b |
) |
[inline] |
|
|
does only modify information, not underlying file
|
bool acdk::io::FileInfo::canRead |
( |
|
) |
[inline] |
|
void acdk::io::FileInfo::canWrite |
( |
bool |
b |
) |
[inline] |
|
|
does only modify information, not underlying file
|
bool acdk::io::FileInfo::canWrite |
( |
|
) |
[inline] |
|
int acdk::io::FileInfo::compareTo |
( |
IN(RFileInfo) |
other |
) |
[inline] |
|
bool acdk::io::FileInfo::equals |
( |
IN(RFileInfo) |
other |
) |
[inline] |
|
void acdk::io::FileInfo::exists |
( |
bool |
b |
) |
[inline] |
|
|
does only modify information, not underlying file
|
bool acdk::io::FileInfo::exists |
( |
|
) |
[inline] |
|
RString acdk::io::FileInfo::flagString |
( |
int |
flags |
) |
[static] |
|
|
render the flags to a string, where each file flags is represented by a character
E Exists
N Does not exists
F File
D Directory
R CanRead
W CanWrite
X CanExecute
H Hidden
A Archiv Bit
- Parameters:
-
flags | combination of FileInfoFlags |
|
RString acdk::io::FileInfo::getPath |
( |
|
) |
|
|
void acdk::io::FileInfo::isChecked |
( |
bool |
b |
) |
[inline] |
|
|
does only modify information, not underlying file
|
bool acdk::io::FileInfo::isChecked |
( |
|
) |
[inline] |
|
void acdk::io::FileInfo::isDirectory |
( |
bool |
b |
) |
[inline] |
|
|
does only modify information, not underlying file
|
bool acdk::io::FileInfo::isDirectory |
( |
|
) |
[inline] |
|
void acdk::io::FileInfo::isFile |
( |
bool |
b |
) |
[inline] |
|
|
does only modify information, not underlying file
|
bool acdk::io::FileInfo::isFile |
( |
|
) |
[inline] |
|
void acdk::io::FileInfo::isHidden |
( |
bool |
b |
) |
[inline] |
|
|
does only modify information, not underlying file
|
bool acdk::io::FileInfo::isHidden |
( |
|
) |
[inline] |
|
RString acdk::io::FileInfo::timeToString |
( |
jlong |
time |
) |
[static] |
|
RString acdk::io::FileInfo::toString |
( |
|
) |
[virtual] |
|
Member Data Documentation
|
hash value of content of file?
|
|
|