The DataOutput interface provides
for converting data from any of the Java
primitive types to a series of bytes and
writing these bytes to a binary stream.
There is also a facility for converting
a String into
modified UTF-8
format and writing the resulting series
of bytes.
For all the methods in this interface that
write bytes, it is generally true that if
a byte cannot be written for any reason,
an IOException is thrown.
DataOutputinterface provides for converting data from any of the Java primitive types to a series of bytes and writing these bytes to a binary stream. There is also a facility for converting aStringinto modified UTF-8 format and writing the resulting series of bytes.For all the methods in this interface that write bytes, it is generally true that if a byte cannot be written for any reason, an
IOExceptionis thrown.