Name

java.io.DataOutput

Synopsis

This interface is a slightly smaller version of its J2SE counterpart. It defines methods to write primitive data types to a platform-dependent binary format.

public interfaceDataOutput {
   // public methods
   public void write(int b) throws java.io.IOException;
   public void write(byte[] b) throws java.io.IOException;
   public void write(byte[] b, int off, int len) throws java.io.IOException;
   public void writeBoolean(boolean v) throws java.io.IOException;
   public void writeByte(int v) throws java.io.IOException;
   public void writeChar(int v) throws java.io.IOException;
   public void writeChars(String s) throws java.io.IOException;
   public void writeInt(int v) throws java.io.IOException;
   public void writeLong(long v) throws java.io.IOException;
   public void writeShort(int v) throws java.io.IOException;
   public void writeUTF(String str) throws java.io.IOException;
}

Get Wireless Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.