public class EndianDataOutputStream extends Object
| 构造器 | 说明 |
|---|---|
EndianDataOutputStream(OutputStream out) |
Creates new EndianDataOutputStream
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
close() |
close stream*
|
void |
flush() |
flush stream*
|
void |
write(byte[] b) |
Write bytes
|
void |
write(byte[] b,
int off,
int len) |
write bytes
|
void |
writeByteBE(int b) |
write a byte in BigEndian - this is exactly the same as the LittleEndian
version since there's no endian in a single byte
|
void |
writeByteLE(int b) |
write a byte in LittleEndian - this is exactly the same as the BigEndian
version since there's no endian in a single byte
|
void |
writeBytesBE(String s) |
write a set of bytes in BigEndian - this is exactly the same as the
LittleEndian version since there's no endian in a single byte
|
void |
writeBytesLE(String s) |
write a set of bytes in LittleEndian - this is exactly the same as the
BigEndian version since there's no endian in a single byte
|
void |
writeDoubleBE(double d) |
write a 64bit double in BigEndian
|
void |
writeDoubleLE(double d) |
write a 64bit double in LittleEndian
|
void |
writeFloatBE(float f) |
Write a float in big endian
|
void |
writeFloatLE(float f) |
Write a float in little endian
|
void |
writeIntBE(int i) |
write a 32bit int in BigEndian
|
void |
writeIntLE(int i) |
write a 32bit int in LittleEndian
|
void |
writeLongBE(long l) |
write a 64bit long in BigEndian
|
void |
writeLongLE(long l) |
write a 64bit long in LittleEndian
|
void |
writeShortBE(int s) |
write a 16bit short in BigEndian
|
void |
writeShortLE(int s) |
write a 16bit short in LittleEndian
|
public EndianDataOutputStream(OutputStream out)
out - public void close()
throws IOException
IOExceptionpublic void write(byte[] b)
throws IOException
b - bytesIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
b - off - len - IOExceptionpublic void flush()
throws IOException
IOExceptionpublic void writeByteLE(int b)
throws IOException
b - IOExceptionpublic void writeByteBE(int b)
throws IOException
b - IOExceptionpublic void writeBytesLE(String s) throws IOException
s - IOExceptionpublic void writeBytesBE(String s) throws IOException
s - IOExceptionpublic void writeShortBE(int s)
throws IOException
s - IOExceptionpublic void writeShortLE(int s)
throws IOException
s - IOExceptionpublic void writeIntBE(int i)
throws IOException
i - IOExceptionpublic void writeIntLE(int i)
throws IOException
i - IOExceptionpublic void writeLongBE(long l)
throws IOException
l - IOExceptionpublic void writeLongLE(long l)
throws IOException
l - IOExceptionpublic void writeFloatBE(float f)
throws IOException
f - Float valueIOExceptionpublic void writeFloatLE(float f)
throws IOException
f - Float valueIOExceptionpublic void writeDoubleBE(double d)
throws IOException
d - IOExceptionpublic void writeDoubleLE(double d)
throws IOException
d - IOExceptionCopyright © 2019. All rights reserved.