public class LittleEndianOutputStream
extends java.io.DataOutputStream
| 构造器和说明 |
|---|
LittleEndianOutputStream(java.io.OutputStream out)
Creates a new instance of LittleEndianOutputStream, which will write to the specified target.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
writeDoubleLE(double value)
Writes a little-endian double value
|
void |
writeFloatLE(float value)
Writes a little-endian float value
|
void |
writeIntLE(int value)
Writes a little-endian int value
|
void |
writeLongLE(long value)
Writes a little-endian long value
|
void |
writeShortLE(short value)
Writes a little-endian short value
|
void |
writeUnsignedInt(long value) |
void |
writeUnsignedIntLE(long value) |
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic LittleEndianOutputStream(java.io.OutputStream out)
out - the target OutputStreampublic void writeShortLE(short value)
throws java.io.IOException
value - the source value to convertjava.io.IOException - if an error occurspublic void writeIntLE(int value)
throws java.io.IOException
value - the source value to convertjava.io.IOException - if an error occurspublic void writeFloatLE(float value)
throws java.io.IOException
value - the source value to convertjava.io.IOException - if an error occurspublic void writeLongLE(long value)
throws java.io.IOException
value - the source value to convertjava.io.IOException - if an error occurspublic void writeDoubleLE(double value)
throws java.io.IOException
value - the source value to convertjava.io.IOException - if an error occurspublic void writeUnsignedInt(long value)
throws java.io.IOException
java.io.IOExceptionpublic void writeUnsignedIntLE(long value)
throws java.io.IOException
java.io.IOException