Packages This Package Prev Next Index
public interface java.io.DataOutput { // Methods public abstract void write(byte b[]); §2.25.1 public abstract void write(byte b[], int off, int len) §2.25.2 public abstract void write(int b); §2.25.3 public abstract void writeBoolean(boolean v); §2.25.4 public abstract void writeByte(int v); §2.25.5 public abstract void writeBytes(String s); §2.25.6 public abstract void writeChar(int v); §2.25.7 public abstract void writeChars(String s); §2.25.8 public abstract void writeDouble(double v); §2.25.9 public abstract void writeFloat(float v); §2.25.10 public abstract void writeInt(int v); §2.25.11 public abstract void writeLong(long v); §2.25.12 public abstract void writeShort(int v); §2.25.13 public abstract void writeUTF(String str); §2.25.14 }The data output interface is implemented by streams that can write primitive Java data types to an output stream in a machine-independent manner.
public abstract void write(byte b[])
throws IOException
b
-
the data
public abstract void write(byte b[], int off, int len)
throws IOException
b
-
the data
off
-
the start offset in the data
len
-
the number of bytes to write
public abstract void write(int b)
throws IOException
b
-
the byte to be written
public abstract void writeBoolean(boolean v)
throws IOException
v
-
the boolean to be written
public abstract void writeByte(int v)
throws IOException
v
-
the byte value to be written
public abstract void writeBytes(String s)
throws IOException
s
-
the string of bytes to be written
public abstract void writeChar(int v)
throws IOException
v
-
the char value to be written
public abstract void writeChars(String s)
throws IOException
s
-
the string value to be written
public abstract void writeDouble(double v)
throws IOException
v
-
the double value to be written
public abstract void writeFloat(float v)
throws IOException
v
-
the float value to be written
public abstract void writeInt(int v)
throws IOException
v
-
the int value to be written
public abstract void writeLong(long v)
throws IOException
v
-
the long value to be written
public abstract void writeShort(int v)
throws IOException
v
-
the short value to be written
public abstract void writeUTF(String str)
throws IOException
str
-
the string value to be written
Packages This Package Prev Next IndexJava API Document (HTML generated by dkramer on April 22, 1996)