API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.io. DataOutput View Source
Author(s)
Frank Yellin
Since
JDK1.0
Version
1.23, 05/23/06
Serial
Hierarchy
 DataOutput
Subinterfaces
Description
public interface DataOutput
  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.
See also:    DataInput DataOutputStream
Methods
Hide/Show inherited methods
public void write (byte[] b) throws IOException
  Writes to the output stream all the bytes in array b.
public void write (byte[] b, int off, int len) throws IOException
  Writes len bytes from array b, in order, to the output stream.
public void write (int b) throws IOException
  Writes to the output stream the eight low-order bits of the argument b.
public void writeBoolean (boolean v) throws IOException
  Writes a boolean value to this output stream.
public void writeByte (int v) throws IOException
  Writes to the output stream the eight low- order bits of the argument v.
public void writeBytes (String s) throws IOException
  Writes a string to the output stream.
public void writeChar (int v) throws IOException
  Writes a char value, which is comprised of two bytes, to the output stream.
public void writeChars (String s) throws IOException
  Writes every character in the string s, to the output stream, in order, two bytes per character.
public void writeDouble (double v) throws IOException
  Writes a double value, which is comprised of eight bytes, to the output stream.
public void writeFloat (float v) throws IOException
  Writes a float value, which is comprised of four bytes, to the output stream.
public void writeInt (int v) throws IOException
  Writes an int value, which is comprised of four bytes, to the output stream.
public void writeLong (long v) throws IOException
  Writes a long value, which is comprised of eight bytes, to the output stream.
public void writeShort (int v) throws IOException
  Writes two bytes to the output stream to represent the value of the argument.
public void writeUTF (String s) throws IOException
  Writes two bytes of length information to the output stream, followed by the modified UTF-8 representation of every character in the string s.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar