|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.ZipDataStream
public class ZipDataStream
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
ZipDataStream(InstancePointer p)
This constructor is public for internal useage only! |
protected |
ZipDataStream(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
ZipDataStream(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
close()
Close the stream; this makes further operations invalid. |
void |
delete()
Deletes the corresponding C++ object. |
boolean |
eof()
Returns true if the stream has reached the end. |
void |
finalize()
|
java.lang.String |
getAsString()
Returns a String containing the entire stream. |
java.lang.String |
getLine(boolean trimAfter)
Returns a String containing the next line of data, optionally trimmed for whitespace. |
java.lang.String |
getName()
|
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. |
int |
size()
Returns the total size of the data to be read from the stream, or 0 if this is indeterminate for this stream. |
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 class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public ZipDataStream(InstancePointer p)
protected ZipDataStream(InstancePointer p,
boolean remote)
public ZipDataStream(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObject
public int read(VoidPointer buf,
int count)
IDataStream
read in interface IDataStreamread in interface IZipDataStreampublic void skip(long count)
IDataStream
skip in interface IDataStreamskip in interface IZipDataStreampublic void seek(int pos)
IDataStream
seek in interface IDataStreamseek in interface IZipDataStreampublic int tell()
IDataStream
tell in interface IDataStreamtell in interface IZipDataStreampublic boolean eof()
IDataStream
eof in interface IDataStreameof in interface IZipDataStreampublic void close()
IDataStream
close in interface IDataStreamclose in interface IZipDataStreampublic java.lang.String getName()
getName in interface IDataStream
public int readLine(BytePointer buf,
int maxCount,
java.lang.String delim)
readLine in interface IDataStreampublic java.lang.String getLine(boolean trimAfter)
getLine in interface IDataStreampublic java.lang.String getAsString()
getAsString in interface IDataStreampublic int skipLine(java.lang.String delim)
skipLine in interface IDataStreampublic int size()
size in interface IDataStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||