|
Emini Physics Engine 1.3.5a API Documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.emini.physics2D.util.PhysicsFileReader
public class PhysicsFileReader
Wrapper for an InputStream. Features convenience methods to convert read bits.
Constructor Summary | |
---|---|
PhysicsFileReader(java.io.InputStream stream)
COnstructor using an input stream. |
|
PhysicsFileReader(java.lang.String name)
Constructor. |
Method Summary | |
---|---|
void |
close()
Closes the stream. |
int |
getVersion()
Gets the version of the data stream. |
int |
next()
Reads the next byte. |
int |
nextInt()
Reads the next int (4 byte). |
float |
nextInt2FX()
Read the next int (4 byte, 2FX). |
float |
nextIntFX()
Read the next int (4 byte, FX). |
java.lang.String |
nextString()
Reads the next string. |
FXVector |
nextVector()
Reads the next vector : 4 + 4 bytes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PhysicsFileReader(java.lang.String name)
name
- the name of the file resource.public PhysicsFileReader(java.io.InputStream stream)
stream
- the data stream.Method Detail |
---|
public int getVersion()
public int next()
public java.lang.String nextString()
public int nextInt()
public float nextIntFX()
public float nextInt2FX()
public FXVector nextVector()
public void close()
|
Emini Physics Engine 1.3.5a API Documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |