public class TLcdDataOutputStream extends Object
The position is incremented before the write operations, so it will be incremented even if the operation fails.
Constructor and Description |
---|
TLcdDataOutputStream(OutputStream out)
Creates a
TLcdDataOutputStream wrapper around a
OutputStream allowing to write little-endian mode words to the output stream. |
Modifier and Type | Method and Description |
---|---|
boolean |
isLittleEndianMode()
Returns true if the numbers written to the stream are written in little endian format.
|
void |
setLittleEndianMode(boolean aFlag)
Specifies whether numbers written to the stream will be written in little endian format.
|
void |
writeBIDouble(double aDouble)
Writes a big-endian double.
|
void |
writeBIFloat(float aDouble)
Writes a big-endian float.
|
void |
writeBIInt(int aInt)
Writes a big-endian integer.
|
void |
writeByte(int aInt)
Writes a byte to the output stream.
|
void |
writeLIDouble(double aDouble)
Writes a little-endian double.
|
void |
writeLIFloat(float aDouble)
Writes a little-endian float.
|
void |
writeLIInt(int aInt)
Writes a little-endian integer.
|
void |
writeLong(long aLong)
Writes a long in little or big endian mode depending on the value of
the property littleEndianMode.
|
public TLcdDataOutputStream(OutputStream out)
TLcdDataOutputStream
wrapper around a
OutputStream
allowing to write little-endian mode words to the output stream.out
- the output stream to wrap.public final void writeBIInt(int aInt) throws IOException
aInt
- the integer to write.IOException
- if an I/O error occurs.public final void writeLIInt(int aInt) throws IOException
aInt
- the integer to write.IOException
- if an I/O error occurs.public final void writeLong(long aLong) throws IOException
aLong
- the long to write.IOException
- if an I/O error occurs.public final void writeLIFloat(float aDouble) throws IOException
aDouble
- the float to write.IOException
- if an I/O error occurs.public final void writeBIFloat(float aDouble) throws IOException
aDouble
- the float to write.IOException
- if an I/O error occurs.public final void writeLIDouble(double aDouble) throws IOException
aDouble
- the double to write.IOException
- if an I/O error occurs.public final void writeBIDouble(double aDouble) throws IOException
aDouble
- the double to write.IOException
- if an I/O error occurs.public void writeByte(int aInt) throws IOException
aInt
- the byte to write.IOException
- if an I/O error occurs.public final void setLittleEndianMode(boolean aFlag)
true
.aFlag
- true when numbers written to the stream will be written in little endian format.public final boolean isLittleEndianMode()