JaRMoS
1.1
Java Reduced Model Simulations
|
Wraps the old BinaryReader (rbappmit) into a DataInput. More...
Public Member Functions | |
LittleEndianDataInput (InputStream in) | |
Takes an InputStream instance pointing to a binary file. More... | |
float[] | readFloat (int _size) throws IOException |
void | readFully (byte[] b) throws IOException |
void | readFully (byte[] b, int off, int len) throws IOException |
int | skipBytes (int n) throws IOException |
boolean | readBoolean () throws IOException |
byte | readByte () throws IOException |
int | readUnsignedByte () throws IOException |
short | readShort () throws IOException |
int | readUnsignedShort () throws IOException |
char | readChar () throws IOException |
int | readInt () throws IOException |
long | readLong () throws IOException |
float | readFloat () throws IOException |
double | readDouble () throws IOException |
String | readLine () throws IOException |
String | readUTF () throws IOException |
Protected Member Functions | |
void | finalize () |
Package Attributes | |
DataInputStream | in |
Wraps the old BinaryReader (rbappmit) into a DataInput.
Included here as some of the model binary files are encoded in little endian machine format.
Source: http://www.captain.at/howto-java-convert-binary-data.php
Definition at line 17 of file LittleEndianDataInput.java.
jarmos.io.LittleEndianDataInput.LittleEndianDataInput | ( | InputStream | in | ) |
Takes an InputStream instance pointing to a binary file.
in | The inputstream to read the values from |
Definition at line 27 of file LittleEndianDataInput.java.
|
protected |
Definition at line 32 of file LittleEndianDataInput.java.
boolean jarmos.io.LittleEndianDataInput.readBoolean | ( | ) | throws IOException |
Definition at line 93 of file LittleEndianDataInput.java.
byte jarmos.io.LittleEndianDataInput.readByte | ( | ) | throws IOException |
Definition at line 101 of file LittleEndianDataInput.java.
char jarmos.io.LittleEndianDataInput.readChar | ( | ) | throws IOException |
Definition at line 133 of file LittleEndianDataInput.java.
double jarmos.io.LittleEndianDataInput.readDouble | ( | ) | throws IOException |
Definition at line 191 of file LittleEndianDataInput.java.
float [] jarmos.io.LittleEndianDataInput.readFloat | ( | int | _size | ) | throws IOException |
float jarmos.io.LittleEndianDataInput.readFloat | ( | ) | throws IOException |
Definition at line 173 of file LittleEndianDataInput.java.
void jarmos.io.LittleEndianDataInput.readFully | ( | byte[] | b | ) | throws IOException |
Definition at line 68 of file LittleEndianDataInput.java.
void jarmos.io.LittleEndianDataInput.readFully | ( | byte[] | b, |
int | off, | ||
int | len | ||
) | throws IOException |
Definition at line 76 of file LittleEndianDataInput.java.
int jarmos.io.LittleEndianDataInput.readInt | ( | ) | throws IOException |
Definition at line 141 of file LittleEndianDataInput.java.
String jarmos.io.LittleEndianDataInput.readLine | ( | ) | throws IOException |
Definition at line 209 of file LittleEndianDataInput.java.
long jarmos.io.LittleEndianDataInput.readLong | ( | ) | throws IOException |
Definition at line 155 of file LittleEndianDataInput.java.
short jarmos.io.LittleEndianDataInput.readShort | ( | ) | throws IOException |
Definition at line 117 of file LittleEndianDataInput.java.
int jarmos.io.LittleEndianDataInput.readUnsignedByte | ( | ) | throws IOException |
Definition at line 109 of file LittleEndianDataInput.java.
int jarmos.io.LittleEndianDataInput.readUnsignedShort | ( | ) | throws IOException |
Definition at line 125 of file LittleEndianDataInput.java.
String jarmos.io.LittleEndianDataInput.readUTF | ( | ) | throws IOException |
Definition at line 217 of file LittleEndianDataInput.java.
int jarmos.io.LittleEndianDataInput.skipBytes | ( | int | n | ) | throws IOException |
Definition at line 85 of file LittleEndianDataInput.java.
|
package |
Definition at line 19 of file LittleEndianDataInput.java.