|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMemoryDataStream
| Method Summary | |
|---|---|
void |
close()
Close the stream; this makes further operations invalid. |
boolean |
eof()
Returns true if the stream has reached the end. |
ShortPointer |
getCurrentPtr()
Get a pointer to the current position in the memory block this stream holds. |
ShortPointer |
getPtr()
Get a pointer to the start of the memory block this stream holds. |
int |
read(VoidPointer buf,
int count)
Read the requisite number of bytes from the stream, stopping at the end of the file. |
int |
readLine(BytePointer buf,
int maxCount,
java.lang.String delim)
Get a single line from the stream. |
void |
seek(int pos)
Repositions the read point to a specified byte. |
void |
setFreeOnClose(boolean free)
Sets whether or not to free the encapsulated memory on close. |
void |
skip(long count)
Skip a defined number of bytes. |
int |
skipLine(java.lang.String delim)
Skip a single line from the stream. |
int |
tell()
Returns the current byte offset from beginning |
| Methods inherited from interface org.ogre4j.IDataStream |
|---|
getAsString, getLine, getName, size |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Method Detail |
|---|
ShortPointer getPtr()
ShortPointer getCurrentPtr()
int read(VoidPointer buf,
int count)
IDataStream
read in interface IDataStream
int readLine(BytePointer buf,
int maxCount,
java.lang.String delim)
IDataStream
readLine in interface IDataStreamint skipLine(java.lang.String delim)
IDataStream
skipLine in interface IDataStreamvoid skip(long count)
IDataStream
skip in interface IDataStreamvoid seek(int pos)
IDataStream
seek in interface IDataStreamint tell()
IDataStream
tell in interface IDataStreamboolean eof()
IDataStream
eof in interface IDataStreamvoid close()
IDataStream
close in interface IDataStreamvoid setFreeOnClose(boolean free)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||