All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.io.OutputStream
|
+----java.io.FilterOutputStream
|
+----java.io.DataOutputStream
len bytes from the specified byte array
starting at offset off to the underlying output stream.
boolean to the underlying output stream as
a 1-byte value.
byte to the underlying output stream as
a 1-byte value.
char to the underlying output stream as a
2-byte value, high byte first.
long using the
doubleToLongBits method in class Double,
and then writes that long value to the underlying
output stream as an 8-byte quantity, high byte first.
int using the
floatToIntBits method in class Float,
and then writes that int value to the underlying
output stream as a 4-byte quantity, high byte first.
int to the underlying output stream as four
bytes, high byte first.
long to the underlying output stream as eight
bytes, high byte first.
short to the underlying output stream as two
bytes, high byte first.
Properties Inheritable written=int
method DataOutputStream(out=OutputStream) public
method write(b=int) public protect Signals IOException
byte to be written.
method write(b=byte[], -
off=int, -
len=int) public protect Signals IOException
len bytes from the specified byte array
starting at offset off to the underlying output stream.
method flush() public Signals IOException
The flush method of DataOuputStream
calls the flush method of its underlying output stream.
method writeBoolean(v=boolean) public final Signals IOException
boolean to the underlying output stream as
a 1-byte value. The value true is written out as the
value (byte)1; the value false is
written out as the value (byte)0.
boolean value to be written.
method writeByte(v=int) public final Signals IOException
byte to the underlying output stream as
a 1-byte value.
byte value to be written.
method writeShort(v=int) public final Signals IOException
short to the underlying output stream as two
bytes, high byte first.
short to be written.
method writeChar(v=int) public final Signals IOException
char to the underlying output stream as a
2-byte value, high byte first.
char value to be written.
method writeInt(v=int) public final Signals IOException
int to the underlying output stream as four
bytes, high byte first.
int to be written.
method writeLong(v=long) public final Signals IOException
long to the underlying output stream as eight
bytes, high byte first.
long to be written.
method writeFloat(v=float) public final Signals IOException
int using the
floatToIntBits method in class Float,
and then writes that int value to the underlying
output stream as a 4-byte quantity, high byte first.
float value to be written.
method writeDouble(v=double) public final Signals IOException
long using the
doubleToLongBits method in class Double,
and then writes that long value to the underlying
output stream as an 8-byte quantity, high byte first.
double value to be written.
method writeBytes(s=String) public final Signals IOException
method writeChars(s=String) public final Signals IOException
writeChar method.
String value to be written.
method writeUTF(str=String) public final Signals IOException
First, two bytes are written to the output stream as if by the
writeShort method giving the number of bytes to
follow. This value is the number of bytes actually written out,
not the length of the string. Following the length, each character
of the string is output, in sequence, using the UTF-8 encoding
for the character.
method size() returns int public final
written field.
All Packages Class Hierarchy This Package Previous Next Index