|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object crystalspace.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 iBase
getVersion
in class csBase
iBase.getVersion()
public java.lang.String getName()
iFile
getName
in interface iFile
getName
in class csBase
iBase.getName()
protected boolean isNativePointerValidSafe(long pointer)
isNativePointerValidSafe
in class csNativeObject
csNativeObject.isNativePointerValidSafe(long)
public boolean atEOF()
iFile
atEOF
in interface iFile
iFile.atEOF()
public void flush()
iFile
flush
in interface iFile
iFile.flush()
public iDataBuffer getAllData()
iFile
getAllData
in interface iFile
iFile.getAllData()
public iDataBuffer getAllData(boolean nullterm)
iFile
getAllData
in interface iFile
nullterm
-
iFile.getAllData(boolean)
public int getPos()
iFile
getPos
in interface iFile
iFile.getPos()
public int getSize()
iFile
getSize
in interface iFile
iFile.getSize()
public int getStatus()
iFile
getStatus
in interface iFile
iFile.getStatus()
public int read(byte[] Data)
iFile
read
in interface iFile
Data
-
iFile.read(byte[])
public boolean setPos(int newpos)
iFile
setPos
in interface iFile
newpos
-
iFile.setPos(int)
public int Write(byte[] Data)
iFile
Write
in interface iFile
Data
-
iFile.Write(byte[])
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |