public class EndianDataOutputStream extends Object
| Constructor and Description |
|---|
EndianDataOutputStream(OutputStream out)
Creates new EndianDataOutputStream
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close stream
|
void |
flush()
flush stream
|
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 |
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)
public void close()
throws IOException
IOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
IOExceptionpublic void flush()
throws IOException
IOExceptionpublic void writeByteLE(int b)
throws IOException
IOExceptionpublic void writeByteBE(int b)
throws IOException
IOExceptionpublic void writeBytesLE(String s) throws IOException
IOExceptionpublic void writeBytesBE(String s) throws IOException
IOExceptionpublic void writeShortBE(int s)
throws IOException
IOExceptionpublic void writeShortLE(int s)
throws IOException
IOExceptionpublic void writeIntBE(int i)
throws IOException
IOExceptionpublic void writeIntLE(int i)
throws IOException
IOExceptionpublic void writeLongBE(long l)
throws IOException
IOExceptionpublic void writeLongLE(long l)
throws IOException
IOExceptionpublic void writeDoubleBE(double d)
throws IOException
IOExceptionpublic void writeDoubleLE(double d)
throws IOException
IOExceptionCopyright © 2015. All rights reserved.