Name

java.io.DataInput

Synopsis

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

public interfaceDataInput {
   // public methods
   public boolean readBoolean() throws java.io.IOException;
   public byte readByte() throws java.io.IOException;
   public char readChar() throws java.io.IOException;
   public void readFully(byte[] b) throws java.io.IOException;
   public void readFully(byte[] b, int off, int len)
      throws java.io.IOException;
   public int readInt() throws java.io.IOException;
   public long readLong() throws java.io.IOException;
   public short readShort() throws java.io.IOException;
   public int readUnsignedByte() throws java.io.IOException;
   public int readUnsignedShort() throws java.io.IOException;
   public String readUTF() throws java.io.IOException;
   public int skipBytes(int n) 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.