API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.io. DataInput View Source
Author(s)
Frank Yellin
Since
JDK1.0
Version
1.25, 04/10/06
Serial
Hierarchy
 DataInput
Subinterfaces
Description
public interface DataInput
  The DataInput interface provides for reading bytes from a binary stream and reconstructing from them data in any of the Java primitive types.
See also:    DataInputStream DataOutput
Methods
Hide/Show inherited methods
public boolean readBoolean () throws IOException
  Reads one input byte and returns true if that byte is nonzero, false if that byte is zero.
public byte readByte () throws IOException
  Reads and returns one input byte.
public char readChar () throws IOException
  Reads two input bytes and returns a char value.
public double readDouble () throws IOException
  Reads eight input bytes and returns a double value.
public float readFloat () throws IOException
  Reads four input bytes and returns a float value.
public void readFully (byte[] b) throws IOException
  Reads some bytes from an input stream and stores them into the buffer array b.
public void readFully (byte[] b, int off, int len) throws IOException
  Reads len bytes from an input stream.
public int readInt () throws IOException
  Reads four input bytes and returns an int value.
public String readLine () throws IOException
  Reads the next line of text from the input stream.
public long readLong () throws IOException
  Reads eight input bytes and returns a long value.
public short readShort () throws IOException
  Reads two input bytes and returns a short value.
public int readUnsignedByte () throws IOException
  Reads one input byte, zero-extends it to type int, and returns the result, which is therefore in the range 0 through 255.
public int readUnsignedShort () throws IOException
  Reads two input bytes and returns an int value in the range 0 through 65535.
public String readUTF () throws IOException
  Reads in a string that has been encoded using a modified UTF-8 format.
public int skipBytes (int n) throws IOException
  Makes an attempt to skip over n bytes of data from the input stream, discarding the skipped bytes.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar