Known Indirect Subclasses
|
Class Overview
Defines an interface for classes that are able to write typed data to some
target. Typically, this data can be read in by a class which implements
DataInput. Types that can be written include byte, 16-bit short, 32-bit int,
32-bit float, 64-bit long, 64-bit double, byte strings, and MUTF-8
encoded strings.
Summary
Public Methods |
abstract
void
|
write(int oneByte)
Writes the specified 8-bit byte.
|
abstract
void
|
write(byte[] buffer, int offset, int count)
Writes count bytes from the byte array buffer starting at
offset index .
|
abstract
void
|
write(byte[] buffer)
Writes the entire contents of the byte array buffer to this
stream.
|
abstract
void
|
writeBoolean(boolean val)
Writes the specified boolean.
|
abstract
void
|
writeByte(int val)
Writes the specified 8-bit byte.
|
abstract
void
|
writeBytes(String str)
Writes the low order 8-bit bytes from the specified string.
|
abstract
void
|
writeChar(int val)
Writes the specified 16-bit character.
|
abstract
void
|
writeChars(String str)
Writes the 16-bit characters contained in str .
|
abstract
void
|
writeDouble(double val)
Writes the specified 64-bit double.
|
abstract
void
|
writeFloat(float val)
Writes the specified 32-bit float.
|
abstract
void
|
writeInt(int val)
Writes the specified 32-bit int.
|
abstract
void
|
writeLong(long val)
Writes the specified 64-bit long.
|
abstract
void
|
writeShort(int val)
Writes the specified 16-bit short.
|
abstract
void
|
writeUTF(String str)
|
Public Methods
public
abstract
void
write
(int oneByte)
Writes the specified 8-bit byte.
Parameters
oneByte
| the byte to write. |
public
abstract
void
write
(byte[] buffer, int offset, int count)
Writes count
bytes from the byte array buffer
starting at
offset index
.
Parameters
buffer
| the buffer to write. |
offset
| the index of the first byte in buffer to write. |
count
| the number of bytes from the buffer to write. |
public
abstract
void
write
(byte[] buffer)
Writes the entire contents of the byte array buffer
to this
stream.
Parameters
buffer
| the buffer to write. |
public
abstract
void
writeBoolean
(boolean val)
Writes the specified boolean.
Parameters
val
| the boolean value to write. |
public
abstract
void
writeByte
(int val)
Writes the specified 8-bit byte.
Parameters
val
| the byte value to write. |
public
abstract
void
writeBytes
(String str)
Writes the low order 8-bit bytes from the specified string.
Parameters
str
| the string containing the bytes to write. |
public
abstract
void
writeChar
(int val)
Writes the specified 16-bit character. Only the two least significant
bytes of the integer oneByte
are written, with the higher one
written first. This represents the Unicode value of the char.
Parameters
val
| the character to write. |
public
abstract
void
writeChars
(String str)
Writes the 16-bit characters contained in str
.
Parameters
str
| the string that contains the characters to write. |
public
abstract
void
writeDouble
(double val)
public
abstract
void
writeFloat
(float val)
Writes the specified 32-bit float. The resulting output is the four bytes
returned by floatToIntBits(float)
.
public
abstract
void
writeInt
(int val)
Writes the specified 32-bit int. The resulting output is the four bytes,
highest order first, of val
.
public
abstract
void
writeLong
(long val)
Writes the specified 64-bit long. The resulting output is the eight
bytes, highest order first, of val
.
public
abstract
void
writeShort
(int val)
Writes the specified 16-bit short. Only the lower two bytes of val
are written with the higher one written first.
public
abstract
void
writeUTF
(String str)