CMFile.CMVFSDirpublic static class CMFile.CMVFSFile
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
mask |
|
protected java.lang.String |
path |
| Constructor | Description |
|---|---|
CMVFSFile(java.lang.String path,
int mask,
long modifiedDateTime,
java.lang.String author) |
Creates an internal VFS file based on given variables.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
copyInto(CMFile.CMVFSFile f2) |
Makes the given VFS file identical to this one
|
int |
getMaskBits(MOB accessor) |
Return bits associated with this file.
|
java.lang.String |
getPath() |
Get the full path of this VFS file and name
|
java.lang.Object |
readData() |
Returns the object associated with the data of this file.
|
void |
saveData(java.lang.String filename,
int vfsBits,
java.lang.String author,
java.lang.Object O) |
Creates, Adds, and saves a VFS file with the given stats.
|
void |
setData(java.lang.Object o) |
Changes the internal data object of this file,
typically during read.
|
public CMVFSFile(java.lang.String path,
int mask,
long modifiedDateTime,
java.lang.String author)
CMFile.VFS_MASK_DIRECTORY, CMFile.VFS_MASK_HIDDEN etc.path - full path and filenamemask - bitmap of file bitsmodifiedDateTime - creation/modified time for the vfs fileauthor - the author/owner of the filepublic void copyInto(CMFile.CMVFSFile f2)
f2 - the VFS file object to alterpublic java.lang.String getPath()
public int getMaskBits(MOB accessor)
CMFile.VFS_MASK_DIRECTORY, CMFile.VFS_MASK_HIDDEN etc.accessor - the mob who wants to access this file.public java.lang.Object readData()
public void saveData(java.lang.String filename,
int vfsBits,
java.lang.String author,
java.lang.Object O)
CMFile.VFS_MASK_DIRECTORY, CMFile.VFS_MASK_HIDDEN etc.filename - the full path and name of the filevfsBits - masking bitsauthor - the author/owner of the fileO - the string, stringbuffer, byte[], or nullpublic void setData(java.lang.Object o)
o - the string, stringbuffer, byte[] or null object