|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
org.walluck.io.DataOutputStreamEx
org.walluck.io.LittleEndianOutputStream
An output stream that supports little endian byte order to the limited degree nedded to support ICQ.
DataOutputStreamEx
Field Summary |
Fields inherited from class java.io.DataOutputStream |
written |
Fields inherited from class java.io.FilterOutputStream |
out |
Constructor Summary | |
LittleEndianOutputStream(java.io.OutputStream os)
Creates a new little endian output stream. |
Method Summary | |
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(java.lang.String s)
Write a string to this stream prefixed by its length, a short in little endian byte order, terminated by a null. |
Methods inherited from class org.walluck.io.DataOutputStreamEx |
writeBytes, writeString, writeString0, writeStringL, writeStringLL, writeStringLL0, writeStringNullPadded |
Methods inherited from class java.io.DataOutputStream |
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
Methods inherited from class java.io.FilterOutputStream |
close, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.DataOutput |
write |
Constructor Detail |
public LittleEndianOutputStream(java.io.OutputStream os)
os
- the underlying output streamMethod Detail |
public void writeIntLE(int n) throws java.io.IOException
n
- the integer to write
java.io.IOException
- if an error occurspublic void writeShortLE(int n) throws java.io.IOException
n
- the short to write
java.io.IOException
- if an error occurspublic void writeStringLLLE0(java.lang.String s) throws java.io.IOException
s
- the string to write
java.io.IOException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |