|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.DataStream
public class DataStream
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
DataStream(InstancePointer p)
This constructor is public for internal useage only! |
protected |
DataStream(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
DataStream(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 DataStream(InstancePointer p)
protected DataStream(InstancePointer p,
boolean remote)
public DataStream(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 NativeObjectpublic java.lang.String getName()
getName in interface IDataStream
public int read(VoidPointer buf,
int count)
read 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 void skip(long count)
skip in interface IDataStreampublic void seek(int pos)
seek in interface IDataStreampublic int tell()
tell in interface IDataStreampublic boolean eof()
eof in interface IDataStreampublic int size()
size in interface IDataStreampublic void close()
close in interface IDataStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||