|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcrystalspace.jbind.impl.csNativeObject
crystalspace.jbind.impl.csutil.scf.csBase
crystalspace.jbind.impl.csutil.vfs.csVFS
| Field Summary |
| Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
| Constructor Summary | |
csVFS(iPointer nPointer)
|
|
| Method Summary | |
boolean |
chDir(java.lang.String Path)
Set current working directory. |
boolean |
deleteFile(java.lang.String FileName)
Delete a file on VFS. |
boolean |
exists(java.lang.String Path)
Check whenever a file exists. |
iDataBuffer |
expandPath(java.lang.String Path,
boolean IsDir)
Expand given virtual path, interpret all "." and ".."' |
iStringArray |
findFiles(java.lang.String Path)
Find all files in a virtual directory and return an array with their names. |
java.lang.String |
getCwd()
Get current working directory. |
java.lang.Long |
getFileSize(java.lang.String FileName)
Query file size (without opening it). |
java.util.Date |
getFileTime(java.lang.String FileName)
Query file date/time. |
static java.lang.Class |
getInterfaceClass()
|
static java.lang.String |
getInterfaceName()
|
static int |
getInterfaceVersion()
|
java.lang.String |
getName()
Return the name of the interface |
iDataBuffer |
getRealPath(java.lang.String FileName)
Query real-world path from given VFS path. |
int |
getVersion()
Return the version of the interface |
static void |
initSCF()
|
protected boolean |
isNativePointerValidSafe()
|
boolean |
mount(java.lang.String VirtualPath,
java.lang.String RealPath)
Mount an VFS path on a "real-world-filesystem" path. |
iStringArray |
mountRoot(java.lang.String VirtualPath)
Mount the root directory or directories beneath the given virtual path. |
iFile |
open(java.lang.String FileName,
int Mode)
Replacement for standard fopen(). |
boolean |
popDir()
Pop current directory. |
void |
pushDir()
Push current directory. |
iDataBuffer |
readFile(java.lang.String FileName,
boolean nullterm)
Get an entire file at once. |
boolean |
saveMounts(java.lang.String FileName)
Save current configuration back into configuration file. |
boolean |
setFileTime(java.lang.String FileName,
java.util.Date dDate)
Set file date/time. |
boolean |
sync()
Close all opened archives, free temporary storage etc. |
boolean |
unmount(java.lang.String VirtualPath,
java.lang.String RealPath)
Unmount an VFS path; if RealPath is 0, entire VirtualPath is unmounted. |
boolean |
writeFile(java.lang.String Name,
byte[] Data)
Write an entire file in one pass. |
boolean |
writeFile(java.lang.String Name,
byte[] Data,
long Size)
|
| Methods inherited from class crystalspace.jbind.impl.csutil.scf.csBase |
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe |
| Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, isNativePointerValidSafe, newNativeObject, setMemoryOwner, toString |
| Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe |
| Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
| Constructor Detail |
public csVFS(iPointer nPointer)
| Method Detail |
public int getVersion()
iBase
getVersion in interface iBasegetVersion in class csBasepublic java.lang.String getName()
iBase
getName in interface iBasegetName in class csBasepublic static void initSCF()
public final boolean chDir(java.lang.String Path)
iVFS
chDir in interface iVFSPath -
public final java.lang.String getCwd()
iVFS
getCwd in interface iVFSpublic final void pushDir()
iVFS
pushDir in interface iVFSpublic final boolean popDir()
iVFS
popDir in interface iVFS
public final iDataBuffer expandPath(java.lang.String Path,
boolean IsDir)
iVFS
expandPath in interface iVFSPath - IsDir -
public final boolean exists(java.lang.String Path)
iVFS
exists in interface iVFSPath -
public final iStringArray findFiles(java.lang.String Path)
iVFS
findFiles in interface iVFSPath -
public final iFile open(java.lang.String FileName,
int Mode)
iVFS
open in interface iVFSFileName - Mode -
public final iDataBuffer readFile(java.lang.String FileName,
boolean nullterm)
iVFS
readFile in interface iVFSFileName - nullterm -
public final boolean writeFile(java.lang.String Name,
byte[] Data,
long Size)
public final boolean deleteFile(java.lang.String FileName)
iVFS
deleteFile in interface iVFSFileName -
public final boolean sync()
iVFS
sync in interface iVFS
public final boolean mount(java.lang.String VirtualPath,
java.lang.String RealPath)
iVFS
mount in interface iVFSVirtualPath - RealPath -
public final boolean unmount(java.lang.String VirtualPath,
java.lang.String RealPath)
iVFS
unmount in interface iVFSVirtualPath - RealPath -
public final iStringArray mountRoot(java.lang.String VirtualPath)
iVFS
mountRoot in interface iVFSVirtualPath -
public final boolean saveMounts(java.lang.String FileName)
iVFS
saveMounts in interface iVFSFileName -
public final java.util.Date getFileTime(java.lang.String FileName)
iVFS
getFileTime in interface iVFSFileName -
public final boolean setFileTime(java.lang.String FileName,
java.util.Date dDate)
iVFS
setFileTime in interface iVFSFileName - dDate -
public final java.lang.Long getFileSize(java.lang.String FileName)
iVFS
getFileSize in interface iVFSFileName -
public final iDataBuffer getRealPath(java.lang.String FileName)
iVFS
getRealPath in interface iVFSFileName -
public static int getInterfaceVersion()
public static java.lang.String getInterfaceName()
public static java.lang.Class getInterfaceClass()
protected boolean isNativePointerValidSafe()
public boolean writeFile(java.lang.String Name,
byte[] Data)
iVFS
writeFile in interface iVFSName - Data -
iVFS.writeFile(java.lang.String, byte[])
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||