|
|||||||||||
| 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.csFile
| Field Summary |
| Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
| Constructor Summary | |
csFile(iPointer nPointer)
|
|
| Method Summary | |
boolean |
atEOF()
Replacement for standard feof();. |
void |
flush()
Flush stream. |
iDataBuffer |
getAllData()
Request whole content of the file as a single data buffer. |
iDataBuffer |
getAllData(boolean nullterm)
Request whole content of the file as a single data buffer. |
java.lang.String |
getName()
Query file name (in VFS);. |
int |
getPos()
Query current file pointer. |
int |
getSize()
Query file size. |
int |
getStatus()
Check (and clear); file last error status. |
int |
getVersion()
Return the version of the interface |
protected boolean |
isNativePointerValidSafe(long pointer)
|
int |
read(byte[] Data)
Replacement for standard fread();. |
boolean |
setPos(int newpos)
Set new file pointer. |
int |
Write(byte[] Data)
Replacement for standard fwrite();. |
| 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, 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 csFile(iPointer nPointer)
nPointer - | Method Detail |
public int getVersion()
iBase
getVersion in interface iBasegetVersion in class csBaseiBase.getVersion()public java.lang.String getName()
iFile
getName in interface iFilegetName in class csBaseiBase.getName()protected boolean isNativePointerValidSafe(long pointer)
isNativePointerValidSafe in class csNativeObjectcsNativeObject.isNativePointerValidSafe(long)public boolean atEOF()
iFile
atEOF in interface iFileiFile.atEOF()public void flush()
iFile
flush in interface iFileiFile.flush()public iDataBuffer getAllData()
iFile
getAllData in interface iFileiFile.getAllData()public iDataBuffer getAllData(boolean nullterm)
iFile
getAllData in interface iFilenullterm -
iFile.getAllData(boolean)public int getPos()
iFile
getPos in interface iFileiFile.getPos()public int getSize()
iFile
getSize in interface iFileiFile.getSize()public int getStatus()
iFile
getStatus in interface iFileiFile.getStatus()public int read(byte[] Data)
iFile
read in interface iFileData -
iFile.read(byte[])public boolean setPos(int newpos)
iFile
setPos in interface iFilenewpos -
iFile.setPos(int)public int Write(byte[] Data)
iFile
Write in interface iFileData -
iFile.Write(byte[])
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||