|
||||||||||
| 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
A data output stream with a few more methods.
DataOutputStream| Field Summary |
| Fields inherited from class java.io.DataOutputStream |
written |
| Fields inherited from class java.io.FilterOutputStream |
out |
| Constructor Summary | |
DataOutputStreamEx(java.io.OutputStream os)
Creates a new data output stream ex from the underlying output stream. |
|
| Method Summary | |
void |
writeBytes(byte[] b)
Writes a byte array (not a string) to this stream. |
void |
writeString(java.lang.String s)
A more correct name for writeBytes. |
void |
writeString0(java.lang.String s)
Write a string to this stream and null terminate it. |
void |
writeStringL(java.lang.String s)
Write a byte prefixed string to this stream. |
void |
writeStringLL(java.lang.String s)
Write a short prefixed string to this stream. |
void |
writeStringLL0(java.lang.String s)
Write a short prefixed null-terminated string to this stream. |
void |
writeStringNullPadded(java.lang.String s,
int length)
Write a null padded string to this stream. |
| 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 DataOutputStreamEx(java.io.OutputStream os)
os - the underlying output stream| Method Detail |
public void writeString(java.lang.String s)
throws java.io.IOException
s - the string to write
java.io.IOException - if an error occurs
public void writeBytes(byte[] b)
throws java.io.IOException
b - the byte array
java.io.IOException - if an error occurs
public void writeString0(java.lang.String s)
throws java.io.IOException
s - the string
java.io.IOException - if an error occurs
public void writeStringL(java.lang.String s)
throws java.io.IOException
s - the string
java.io.IOException - if an error occurs
public void writeStringLL(java.lang.String s)
throws java.io.IOException
s - the string
java.io.IOException - if an error occurs
public void writeStringLL0(java.lang.String s)
throws java.io.IOException
s - the string
java.io.IOException - if an error occurs
public void writeStringNullPadded(java.lang.String s,
int length)
throws java.io.IOException
s - the stringlength - the total length the padded string should be
java.io.IOException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||