public class LittleEndianOutputStream extends DataOutputStreamEx
DataOutputStreamEx
written
out
Constructor and Description |
---|
LittleEndianOutputStream(OutputStream os)
Creates a new little endian output stream.
|
Modifier and Type | Method and Description |
---|---|
void |
writeIntLE(int n)
Write an integer to this stream in little endian byte order.
|
void |
writeShortLE(int n)
Write a short to this stream in little endian byte order.
|
void |
writeStringLLLE0(String s)
Write a string to this stream prefixed by its length, a short in little
endian byte order, terminated by a null.
|
writeBytes, writeString, writeString0, writeStringL, writeStringLL, writeStringLL0, writeStringNullPadded
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
close, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
write
public LittleEndianOutputStream(OutputStream os)
os
- the underlying output streampublic void writeIntLE(int n) throws IOException
n
- the integer to writeIOException
- if an error occurspublic void writeShortLE(int n) throws IOException
n
- the short to writeIOException
- if an error occurspublic void writeStringLLLE0(String s) throws IOException
s
- the string to writeIOException
- if an error occurs