|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
org.npsnet.xrti.utilities.HLAEncodingOutputStream
An output stream with methods for writing values using standard HLA encoding.
| Field Summary |
| Fields inherited from class java.io.DataOutputStream |
written |
| Fields inherited from class java.io.FilterOutputStream |
out |
| Constructor Summary | |
HLAEncodingOutputStream(java.io.OutputStream os)
Constructor. |
|
HLAEncodingOutputStream(java.io.OutputStream os,
int pAlignment)
Constructor. |
|
| Method Summary | |
int |
getAlignment()
Returns the alignment value. |
void |
setAlignment(int pAlignment)
Sets the alignment value. |
void |
writeHLAASCIIchar(char value)
Writes an ASCII character. |
void |
writeHLAASCIIstring(java.lang.String value)
Writes an ASCII string. |
void |
writeHLAboolean(boolean value)
Writes a boolean value. |
void |
writeHLAbyte(byte value)
Writes a byte. |
void |
writeHLAfloat32BE(float value)
Writes a thirty-two bit float with big-endian byte ordering. |
void |
writeHLAfloat32LE(float value)
Writes a thirty-two bit float with little-endian byte ordering. |
void |
writeHLAfloat64BE(double value)
Writes a sixty-four bit float with big-endian byte ordering. |
void |
writeHLAfloat64LE(double value)
Writes a sixty-four bit float with little-endian byte ordering. |
void |
writeHLAinteger16BE(short value)
Writes a sixteen bit integer with big-endian byte ordering. |
void |
writeHLAinteger16LE(short value)
Writes a sixteen bit integer with little-endian byte ordering. |
void |
writeHLAinteger32BE(int value)
Writes a thirty-two bit integer with big-endian byte ordering. |
void |
writeHLAinteger32LE(int value)
Writes a thirty-two bit integer with little-endian byte ordering. |
void |
writeHLAinteger64BE(long value)
Writes a sixty-four bit integer with big-endian byte ordering. |
void |
writeHLAinteger64LE(long value)
Writes a sixty-four bit integer with little-endian byte ordering. |
void |
writeHLAoctet(byte value)
Writes an octet. |
void |
writeHLAoctetPairBE(short value)
Writes a sixteen bit octet pair with big-endian byte ordering. |
void |
writeHLAoctetPairLE(short value)
Writes a sixteen bit octet pair with little-endian byte ordering. |
void |
writeHLAopaqueData(byte[] value)
Writes an array of opaque data. |
void |
writeHLAunicodeChar(char value)
Writes a Unicode character. |
void |
writeHLAunicodeString(java.lang.String value)
Writes a Unicode string. |
| Methods inherited from class java.io.DataOutputStream |
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeDouble, writeFloat, writeChar, writeChars, writeInt, writeLong, writeShort, writeUTF |
| Methods inherited from class java.io.FilterOutputStream |
close, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.io.DataOutput |
write |
| Constructor Detail |
public HLAEncodingOutputStream(java.io.OutputStream os)
0.
os - the OutputStream to write to
public HLAEncodingOutputStream(java.io.OutputStream os,
int pAlignment)
os - the OutputStream to write topAlignment - the initial alignment value| Method Detail |
public void setAlignment(int pAlignment)
pAlignment - the new alignment valuepublic int getAlignment()
public void writeHLAinteger16BE(short value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAinteger32BE(int value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAinteger64BE(long value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAfloat32BE(float value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAfloat64BE(double value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAoctetPairBE(short value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAinteger16LE(short value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAinteger32LE(int value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAinteger64LE(long value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAfloat32LE(float value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAfloat64LE(double value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAoctetPairLE(short value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAoctet(byte value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAASCIIchar(char value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAunicodeChar(char value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAbyte(byte value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAboolean(boolean value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAASCIIstring(java.lang.String value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAunicodeString(java.lang.String value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
public void writeHLAopaqueData(byte[] value)
throws java.io.IOException
value - the value to write
java.io.IOException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||