All Packages Class Hierarchy This Package Previous Next Index
Interface java.io.DataOutput
- public interface DataOutput
The data output interface is implemented by streams that can
write primitive Java data types to an output stream in a
machine-independent manner.
- See Also:
- DataInput, DataOutputStream
-
write(byte[])
- Writes
b.length bytes from the specified byte array
to this output stream.
-
write(byte[], int, int)
- Writes
len bytes from the specified byte array
starting at offset off to this output stream.
-
write(int)
- Writes the specified byte to this data output stream.
-
writeBoolean(boolean)
- Writes a
boolean value to this output stream.
-
writeByte(int)
- Writes an 8-bit value to this output stream.
-
writeBytes(String)
- Writes a string to this output stream.
-
writeChar(int)
- Writes a
char value to this output stream.
-
writeChars(String)
- Writes a string to this output stream.
-
writeDouble(double)
- Writes a
double value to this output stream.
-
writeFloat(float)
- Writes a
float value to this output stream.
-
writeInt(int)
- Writes an
int value to this output stream.
-
writeLong(long)
- Writes a
long value to this output stream.
-
writeShort(int)
- Writes a 16-bit value to this output stream.
-
writeUTF(String)
- Writes a Unicode string by encoding it using modified UTF-8 format.
write
method write(b=int) public abstract Signals IOException
- Writes the specified byte to this data output stream.
- Parameters:
- b - the byte to be written.
- Throws: IOException
- if an I/O error occurs.
write
method write(b=byte[]) public abstract Signals IOException
- Writes
b.length bytes from the specified byte array
to this output stream.
- Parameters:
- b - the data.
- Throws: IOException
- if an I/O error occurs.
write
method write(b=byte[], -
off=int, -
len=int) public abstract Signals IOException
- Writes
len bytes from the specified byte array
starting at offset off to this output stream.
- Parameters:
- b - the data.
- off - the start offset in the data.
- len - the number of bytes to write.
- Throws: IOException
- if an I/O error occurs.
writeBoolean
method writeBoolean(v=boolean) public abstract Signals IOException
- Writes a
boolean value to this output stream.
- Parameters:
- v - the boolean to be written.
- Throws: IOException
- if an I/O error occurs.
writeByte
method writeByte(v=int) public abstract Signals IOException
- Writes an 8-bit value to this output stream.
- Parameters:
- v - the byte value to be written.
- Throws: IOException
- if an I/O error occurs.
writeShort
method writeShort(v=int) public abstract Signals IOException
- Writes a 16-bit value to this output stream.
- Parameters:
- v - the
short value to be written.
- Throws: IOException
- if an I/O error occurs.
writeChar
method writeChar(v=int) public abstract Signals IOException
- Writes a
char value to this output stream.
- Parameters:
- v - the
char value to be written.
- Throws: IOException
- if an I/O error occurs.
writeInt
method writeInt(v=int) public abstract Signals IOException
- Writes an
int value to this output stream.
- Parameters:
- v - the
int value to be written.
- Throws: IOException
- if an I/O error occurs.
writeLong
method writeLong(v=long) public abstract Signals IOException
- Writes a
long value to this output stream.
- Parameters:
- v - the
long value to be written.
- Throws: IOException
- if an I/O error occurs.
writeFloat
method writeFloat(v=float) public abstract Signals IOException
- Writes a
float value to this output stream.
- Parameters:
- v - the
float value to be written.
- Throws: IOException
- if an I/O error occurs.
writeDouble
method writeDouble(v=double) public abstract Signals IOException
- Writes a
double value to this output stream.
- Parameters:
- v - the
double value to be written.
- Throws: IOException
- if an I/O error occurs.
writeBytes
method writeBytes(s=String) public abstract Signals IOException
- Writes a string to this output stream.
- Parameters:
- s - the string of bytes to be written.
- Throws: IOException
- if an I/O error occurs.
writeChars
method writeChars(s=String) public abstract Signals IOException
- Writes a string to this output stream.
- Parameters:
- s - the string value to be written.
- Throws: IOException
- if an I/O error occurs.
writeUTF
method writeUTF(str=String) public abstract Signals IOException
- Writes a Unicode string by encoding it using modified UTF-8 format.
- Parameters:
- str - the string value to be written.
- Throws: IOException
- if an I/O error occurs.
All Packages Class Hierarchy This Package Previous Next Index