|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
org.npsnet.xrti.utilities.HLAEncodingInputStream
An input stream with methods for reading values using standard HLA encoding.
| Field Summary |
| Fields inherited from class java.io.FilterInputStream |
in |
| Constructor Summary | |
HLAEncodingInputStream(java.io.InputStream is)
Constructor. |
|
HLAEncodingInputStream(java.io.InputStream is,
int pAlignment)
Constructor. |
|
| Method Summary | |
int |
getAlignment()
Returns the alignment value. |
char |
readHLAASCIIchar()
Reads an ASCII character. |
java.lang.String |
readHLAASCIIstring()
Reads an ASCII string. |
boolean |
readHLAboolean()
Reads a boolean value. |
byte |
readHLAbyte()
Reads a byte. |
float |
readHLAfloat32BE()
Reads a thirty-two bit float with big-endian byte ordering. |
float |
readHLAfloat32LE()
Reads a thirty-two bit float with little-endian byte ordering. |
double |
readHLAfloat64BE()
Reads a sixty-four bit float with big-endian byte ordering. |
double |
readHLAfloat64LE()
Reads a sixty-four bit float with little-endian byte ordering. |
short |
readHLAinteger16BE()
Reads a sixteen bit integer with big-endian byte ordering. |
short |
readHLAinteger16LE()
Reads a sixteen bit integer with little-endian byte ordering. |
int |
readHLAinteger32BE()
Reads a thirty-two bit integer with big-endian byte ordering. |
int |
readHLAinteger32LE()
Reads a thirty-two bit integer with little-endian byte ordering. |
long |
readHLAinteger64BE()
Reads a sixty-four bit integer with big-endian byte ordering. |
long |
readHLAinteger64LE()
Reads a sixty-four bit integer with little-endian byte ordering. |
byte |
readHLAoctet()
Reads an octet. |
short |
readHLAoctetPairBE()
Reads a sixteen bit octet pair with big-endian byte ordering. |
short |
readHLAoctetPairLE()
Reads a sixteen bit octet pair with little-endian byte ordering. |
byte[] |
readHLAopaqueData()
Reads an array of opaque data. |
char |
readHLAunicodeChar()
Reads a Unicode character. |
java.lang.String |
readHLAunicodeString()
Reads a Unicode string. |
void |
setAlignment(int pAlignment)
Sets the alignment value. |
| Methods inherited from class java.io.DataInputStream |
read, read, readBoolean, readByte, readDouble, readFloat, readFully, readFully, readChar, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes |
| Methods inherited from class java.io.FilterInputStream |
available, close, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HLAEncodingInputStream(java.io.InputStream is)
0.
is - the InputStream to read from
public HLAEncodingInputStream(java.io.InputStream is,
int pAlignment)
is - the InputStream to read frompAlignment - the initial alignment value| Method Detail |
public void setAlignment(int pAlignment)
pAlignment - the new alignment valuepublic int getAlignment()
public short readHLAinteger16BE()
throws java.io.IOException
java.io.IOException - if an error occurs
public int readHLAinteger32BE()
throws java.io.IOException
java.io.IOException - if an error occurs
public long readHLAinteger64BE()
throws java.io.IOException
java.io.IOException - if an error occurs
public float readHLAfloat32BE()
throws java.io.IOException
java.io.IOException - if an error occurs
public double readHLAfloat64BE()
throws java.io.IOException
java.io.IOException - if an error occurs
public short readHLAoctetPairBE()
throws java.io.IOException
java.io.IOException - if an error occurs
public short readHLAinteger16LE()
throws java.io.IOException
java.io.IOException - if an error occurs
public int readHLAinteger32LE()
throws java.io.IOException
java.io.IOException - if an error occurs
public long readHLAinteger64LE()
throws java.io.IOException
java.io.IOException - if an error occurs
public float readHLAfloat32LE()
throws java.io.IOException
java.io.IOException - if an error occurs
public double readHLAfloat64LE()
throws java.io.IOException
java.io.IOException - if an error occurs
public short readHLAoctetPairLE()
throws java.io.IOException
java.io.IOException - if an error occurs
public byte readHLAoctet()
throws java.io.IOException
java.io.IOException - if an error occurs
public char readHLAASCIIchar()
throws java.io.IOException
java.io.IOException - if an error occurs
public char readHLAunicodeChar()
throws java.io.IOException
java.io.IOException - if an error occurs
public byte readHLAbyte()
throws java.io.IOException
java.io.IOException - if an error occurs
public boolean readHLAboolean()
throws java.io.IOException
java.io.IOException - if an error occurs
public java.lang.String readHLAASCIIstring()
throws java.io.IOException
java.io.IOException - if an error occurs
public java.lang.String readHLAunicodeString()
throws java.io.IOException
java.io.IOException - if an error occurs
public byte[] readHLAopaqueData()
throws java.io.IOException
java.io.IOException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||