|
|||||||||
| 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
public class 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(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(String s)
A more correct name for writeBytes. |
void |
writeString0(String s)
Write a string to this stream and null terminate it. |
void |
writeStringL(String s)
Write a byte prefixed string to this stream. |
void |
writeStringLL(String s)
Write a short prefixed string to this stream. |
void |
writeStringLL0(String s)
Write a short prefixed null-terminated string to this stream. |
void |
writeStringNullPadded(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(OutputStream os)
os - the underlying output stream| Method Detail |
|---|
public void writeString(String s)
throws IOException
s - the string to write
IOException - if an error occurs
public void writeBytes(byte[] b)
throws IOException
b - the byte array
IOException - if an error occurs
public void writeString0(String s)
throws IOException
s - the string
IOException - if an error occurs
public void writeStringL(String s)
throws IOException
s - the string
IOException - if an error occurs
public void writeStringLL(String s)
throws IOException
s - the string
IOException - if an error occurs
public void writeStringLL0(String s)
throws IOException
s - the string
IOException - if an error occurs
public void writeStringNullPadded(String s,
int length)
throws IOException
s - the stringlength - the total length the padded string should be
IOException - if an error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||