API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.io. DataInputStream View Source
Author(s)
Arthur van Hoff
Since
JDK1.0
Version
1.77, 06/07/06
Serial
Hierarchy
 Object
      InputStream
          FilterInputStream
              DataInputStream
Implements
 DataInput
Subclasses
Description
public class DataInputStream
  A data input stream lets an application read primitive Java data types from an underlying input stream in a machine-independent way.
See also:    DataOutputStream
Constructors
public DataInputStream (InputStream in)
  Creates a DataInputStream that uses the specified underlying InputStream.
Methods
Hide/Show inherited methods
public int available () throws IOException [Inherited From FilterInputStream]
  Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.
public void close () throws IOException [Inherited From FilterInputStream]
  Closes this input stream and releases any system resources associated with the stream.
publicsynchronized void mark (int readlimit) [Inherited From FilterInputStream]
  Marks the current position in this input stream.
public boolean markSupported () [Inherited From FilterInputStream]
  Tests if this input stream supports the mark and reset methods.
public int read () throws IOException [Inherited From FilterInputStream] [Specified in InputStream]
  Reads the next byte of data from this input stream.
publicfinal int read (byte[] b) throws IOException [Overrides FilterInputStream]
  Reads some number of bytes from the contained input stream and stores them into the buffer array b.
publicfinal int read (byte[] b, int off, int len) throws IOException [Overrides FilterInputStream]
  Reads up to len bytes of data from the contained input stream into an array of bytes.
publicfinal boolean readBoolean () throws IOException [Specified in DataInput]
  See the general contract of the readBoolean method of DataInput.
publicfinal byte readByte () throws IOException [Specified in DataInput]
  See the general contract of the readByte method of DataInput.
publicfinal char readChar () throws IOException [Specified in DataInput]
  See the general contract of the readChar method of DataInput.
publicfinal double readDouble () throws IOException [Specified in DataInput]
  See the general contract of the readDouble method of DataInput.
publicfinal float readFloat () throws IOException [Specified in DataInput]
  See the general contract of the readFloat method of DataInput.
publicfinal void readFully (byte[] b) throws IOException [Specified in DataInput]
  See the general contract of the readFully method of DataInput.
publicfinal void readFully (byte[] b, int off, int len) throws IOException [Specified in DataInput]
  See the general contract of the readFully method of DataInput.
publicfinal int readInt () throws IOException [Specified in DataInput]
  See the general contract of the readInt method of DataInput.
@Deprecated
publicfinal String readLine () throws IOException [Specified in DataInput]
  See the general contract of the readLine method of DataInput.
publicfinal long readLong () throws IOException [Specified in DataInput]
  See the general contract of the readLong method of DataInput.
publicfinal short readShort () throws IOException [Specified in DataInput]
  See the general contract of the readShort method of DataInput.
publicfinal int readUnsignedByte () throws IOException [Specified in DataInput]
  See the general contract of the readUnsignedByte method of DataInput.
publicfinal int readUnsignedShort () throws IOException [Specified in DataInput]
  See the general contract of the readUnsignedShort method of DataInput.
publicfinal String readUTF () throws IOException [Specified in DataInput]
  See the general contract of the readUTF method of DataInput.
publicfinalstatic String readUTF (DataInput in) throws IOException
  Reads from the stream in a representation of a Unicode character string encoded in modified UTF-8 format; this string of characters is then returned as a String.
publicsynchronized void reset () throws IOException [Inherited From FilterInputStream]
  Repositions this stream to the position at the time the mark method was last called on this input stream.
public long skip (long n) throws IOException [Inherited From FilterInputStream]
  Skips over and discards n bytes of data from this input stream.
publicfinal int skipBytes (int n) throws IOException [Specified in DataInput]
  See the general contract of the skipBytes method of DataInput.
Fields
Hide/Show inherited fields
protectedvolatile InputStream in [Inherited From FilterInputStream]
The input stream to be filtered.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar