|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.FileStreamDataStream
public class FileStreamDataStream
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
FileStreamDataStream(Iifstream s,
boolean freeOnClose)
Construct stream from an STL stream |
|
FileStreamDataStream(InstancePointer p)
This constructor is public for internal useage only! |
protected |
FileStreamDataStream(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
FileStreamDataStream(java.lang.String name,
Iifstream s,
boolean freeOnClose)
Construct named stream from an STL stream |
|
FileStreamDataStream(java.lang.String name,
Iifstream s,
int size,
boolean freeOnClose)
Construct named stream from an STL stream, and tell it the size |
|
FileStreamDataStream(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 FileStreamDataStream(InstancePointer p)
protected FileStreamDataStream(InstancePointer p,
boolean remote)
public FileStreamDataStream(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()
public FileStreamDataStream(Iifstream s,
boolean freeOnClose)
public FileStreamDataStream(java.lang.String name,
Iifstream s,
boolean freeOnClose)
public FileStreamDataStream(java.lang.String name,
Iifstream s,
int size,
boolean freeOnClose)
| 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 IFileStreamDataStream
public int readLine(BytePointer buf,
int maxCount,
java.lang.String delim)
IDataStream
readLine in interface IDataStreamreadLine in interface IFileStreamDataStreampublic void skip(long count)
IDataStream
skip in interface IDataStreamskip in interface IFileStreamDataStreampublic void seek(int pos)
IDataStream
seek in interface IDataStreamseek in interface IFileStreamDataStreampublic int tell()
IDataStream
tell in interface IDataStreamtell in interface IFileStreamDataStreampublic boolean eof()
IDataStream
eof in interface IDataStreameof in interface IFileStreamDataStreampublic void close()
IDataStream
close in interface IDataStreamclose in interface IFileStreamDataStreampublic java.lang.String getName()
getName 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 | |||||||||