public class LittleEndianOutputStream extends DataOutputStreamEx
DataOutputStreamExwrittenout| 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, writeStringNullPaddedflush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFclose, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritepublic 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