|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
DataOutput is an interface describing streams that can write output in a machine-independent format.
DataOutputStream,
DataInput| Method Summary | |
void |
write(byte[] b)
Writes an array of bytes. |
void |
write(byte[] b,
int off,
int len)
Writes a subarray of bytes. |
void |
write(int b)
Writes a byte. |
void |
writeBoolean(boolean v)
Writes a boolean. |
void |
writeByte(int v)
Writes an 8 bit byte. |
void |
writeBytes(String s)
Writes a String as a sequence of bytes. |
void |
writeChar(int v)
Writes a 16 bit char. |
void |
writeChars(String s)
Writes a String as a sequence of chars. |
void |
writeDouble(double v)
Writes a 64 bit double. |
void |
writeFloat(float v)
Writes a 32 bit float. |
void |
writeInt(int v)
Writes a 32 bit int. |
void |
writeLong(long v)
Writes a 64 bit long. |
void |
writeShort(int v)
Writes a 16 bit short. |
void |
writeUTF(String str)
Writes a String in UTF format. |
| Method Detail |
public void write(int b)
throws IOException
b - the byte to be written
IOException - If an I/O error has occurred.
public void write(byte[] b)
throws IOException
b - the data to be written
IOException - If an I/O error has occurred.
public void write(byte[] b,
int off,
int len)
throws IOException
b - the data to be writtenoff - the start offset in the datalen - the number of bytes that are written
IOException - If an I/O error has occurred.
public void writeBoolean(boolean v)
throws IOException
v - the boolean to be written
IOException
public void writeByte(int v)
throws IOException
v - the byte value to be written
IOException
public void writeShort(int v)
throws IOException
v - the short value to be written
IOException
public void writeChar(int v)
throws IOException
v - the char value to be written
IOException
public void writeInt(int v)
throws IOException
v - the integer value to be written
IOException
public void writeLong(long v)
throws IOException
v - the long value to be written
IOException
public void writeFloat(float v)
throws IOException
v - the float value to be written
IOException
public void writeDouble(double v)
throws IOException
v - the double value to be written
IOException
public void writeBytes(String s)
throws IOException
s - the String of bytes to be written
IOException
public void writeChars(String s)
throws IOException
s - the String of chars to be written
IOException
public void writeUTF(String str)
throws IOException
str - the String in UTF format
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||