java.io
DataOutput
Declarationpublic interface DataOutput
All Known Subinterfaces: javax.microedition.io.Datagram
All Known Implementing Classes: DataOutputStream
Description
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 Java
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.
Methods
void write(byte[] b)
void write(byte[] b, int off, int len)
void write(int b)
void writeBoolean(boolean v)
void writeByte(int v)
void writeChar(int v)
void writeChars(java.lang.String s)
void writeDouble(double v)
void writeFloat(float v)
void writeInt(int v)
void writeLong(long v)
void writeShort(int v)
void writeUTF(java.lang.String s)
No comments:
Post a Comment