Java java.io DataInputStream fields, constructors, methods, implement or subclass

Example usage for Java java.io DataInputStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.io DataInputStream.

The text is from its open source code.

Subclass

java.io.DataInputStream has subclasses.
Click this link to see all its subclasses.

Constructor

DataInputStream(InputStream in)
Creates a DataInputStream that uses the specified underlying InputStream.

Method

intavailable()
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.
voidclose()
Closes this input stream and releases any system resources associated with the stream.
voidmark(int readlimit)
Marks the current position in this input stream.
booleanmarkSupported()
Tests if this input stream supports the mark and reset methods.
intread(byte b[])
Reads some number of bytes from the contained input stream and stores them into the buffer array b.
intread(byte b[], int off, int len)
Reads up to len bytes of data from the contained input stream into an array of bytes.
intread()
Reads the next byte of data from this input stream.
booleanreadBoolean()
See the general contract of the readBoolean method of DataInput.
bytereadByte()
See the general contract of the readByte method of DataInput.
charreadChar()
See the general contract of the readChar method of DataInput.
doublereadDouble()
See the general contract of the readDouble method of DataInput.
floatreadFloat()
See the general contract of the readFloat method of DataInput.
voidreadFully(byte b[])
See the general contract of the readFully method of DataInput .
voidreadFully(byte b[], int off, int len)
See the general contract of the readFully method of DataInput .
intreadInt()
See the general contract of the readInt method of DataInput.
StringreadLine()
See the general contract of the readLine method of DataInput.
longreadLong()
See the general contract of the readLong method of DataInput.
shortreadShort()
See the general contract of the readShort method of DataInput.
intreadUnsignedByte()
See the general contract of the readUnsignedByte method of DataInput.
intreadUnsignedShort()
See the general contract of the readUnsignedShort method of DataInput.
StringreadUTF()
See the general contract of the readUTF method of DataInput.
StringreadUTF(DataInput in)
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.
voidreset()
Repositions this stream to the position at the time the mark method was last called on this input stream.
longskip(long n)
Skips over and discards n bytes of data from the input stream.
intskipBytes(int n)
See the general contract of the skipBytes method of DataInput.