This
interface defines the methods required for streams that can write
Java primitive data types in a machine-independent binary format. It
is implemented by DataOutputStream and
RandomAccessFile. See
DataOutputStream for more information on the
methods.
public interface DataOutput {
// Public Instance Methods
void write (byte[ ] b ) throws IOException;
void write (int b ) throws IOException;
void write (byte[ ] b , int off , int len ) throws IOException;
void writeBoolean (boolean v ) throws IOException;
void writeByte (int v ) throws IOException;
void writeBytes (String s ) throws IOException;
void writeChar (int v ) throws IOException;
void writeChars (String s ) throws IOException;
void writeDouble (double v ) throws IOException;
void writeFloat (float v ) throws IOException;
void writeInt (int v ) throws IOException;
void writeLong (long v ) throws IOException;
void writeShort (int v ) throws IOException;
void writeUTF (String str ) throws IOException;
}
Implementations
DataOutputStream, ObjectOutput,
RandomAccessFile