|
Public Member Functions |
| File (IN(RFileImpl) fileimpl) |
| File (IN(RString) path) |
| File (IN(RFile) parent, IN(RString) child) |
| File (IN(RString) parent, IN(RString) child) |
RFileImpl | getFileImpl () |
virtual RFile | makeChild (RString subfile) |
virtual int | compareTo (IN(acdk::lang::Object) o) |
virtual int | compareTo (IN(RFile) o) |
virtual bool | equals (IN(acdk::lang::Object) o) |
| Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.
|
virtual int | hashCode () |
RString | getCanonicalPath () |
| API: JDK.
|
RString | getAbsolutePath () |
| API: JDK.
|
RString | getName () |
| API: JDK.
|
RString | getParent () |
| API: JDK.
|
RFile | getParentFile () |
| API: JDK.
|
RString | getPath () |
| API: JDK.
|
bool | isAbsolute () |
| API: JDK.
|
bool | exists () |
| API: JDK.
|
bool | canRead () |
| API: JDK.
|
bool | canWrite () |
| API: JDK.
|
bool | isDirectory () |
| API: JDK.
|
bool | isFile () |
| API: JDK.
|
bool | isHidden () |
| API: JDK.
|
jlong | length () |
| API: JDK.
|
bool | createNewFile () |
| API: JDK.
|
bool | deleteFile () |
| API: like JDK in java the method is named as delete.
|
void | deleteOnExit () |
RStringArray | list (IN(RFilenameFilter) filter=Nil, int listFlags=FileListBoth) |
| return the filename matching
|
RFileArray | listFiles (IN(RFileFilter) filter=Nil, int listFlags=FileListBoth) |
jlong | lastModified () |
| API: JDK Status: not implemented.
|
jlong | fileCreated () |
| API: enhanced Status: not tested.
|
bool | mkdir (int mode=0777) |
| mode is the file access bit mask.
|
bool | mkdirs (int mode=0777) |
| try to make directories recursive
|
bool | renameTo (IN(RFile) dest) |
| rename the file.
|
bool | setLastModified (jlong time) |
bool | setFileCreated (jlong time) |
bool | setReadOnly (bool doReadOnly) |
| set the file read only or read/write
|
bool | setFileAttributes (int mask, int flags) |
| set the file attribute flags
|
virtual RFileInfo | getFileInfo () |
| return the cached file information for this file
|
RString | toString () |
| return a string representation of this object Object::toString() return getName() by default
|
virtual RReader | getReader () |
| return a reader of this file
|
virtual RWriter | getWriter () |
| return a writer of this file
|
RString | loadAscii () |
| reads the complete file into a String API: ACDK
|
RbyteArray | loadBinary () |
| reads the complete file into a ByteArray API: ACDK
|
Static Public Member Functions |
acdk::lang::Object | create_instance () |
RFileImpl | getFileImpl (IN(RString) fname) |
char | pathSeparatorChar () |
| return the seperator for PATH declarations on Windows this is ';' on unices it is ':'
|
RString | pathSeparator () |
| return the seperator for PATH declarations on Windows this is ';' on unices it is ':'
|
char | separatorChar () |
RString | separator () |
RString | endOfLine () |
RFileArray | listRoots () |
| return the 'roots' of the file system.
|
RFile | createTempFile (IN(RString) prefix, IN(RString) suffix) |
| API: JDK.
|
RFile | createTempFile (IN(RString) prefix, IN(RString) suffix, IN(RFile) directory) |
| API: JDK.
|
RString | getCWD () |
| return the current working directory
|
RFile | getCWDFile () |
| return the current working directory
|
bool | setCWD (IN(RString) newpath) |
| set a new working directory
|
RString | concat (IN(RString) parent, IN(RString) child) |
| Merges parent and child path.
|
Protected Attributes |
RFileImpl | _fileImpl |
Static Protected Attributes |
const char | _pathSeparatorChar |
const char | _nameSeparatorChar |