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

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

Introduction

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

The text is from its open source code.

Implementation

java.io.DataInput has the following implementations.
Click this link to see all its implementation.

Method

booleanreadBoolean()
Reads one input byte and returns true if that byte is nonzero, false if that byte is zero.
bytereadByte()
Reads and returns one input byte.
charreadChar()
Reads two input bytes and returns a char value.
doublereadDouble()
Reads eight input bytes and returns a double value.
floatreadFloat()
Reads four input bytes and returns a float value.
voidreadFully(byte b[], int off, int len)
Reads len bytes from an input stream.
voidreadFully(byte b[])
Reads some bytes from an input stream and stores them into the buffer array b .
intreadInt()
Reads four input bytes and returns an int value.
StringreadLine()
Reads the next line of text from the input stream.
longreadLong()
Reads eight input bytes and returns a long value.
shortreadShort()
Reads two input bytes and returns a short value.
intreadUnsignedByte()
Reads one input byte, zero-extends it to type int , and returns the result, which is therefore in the range 0 through 255 .
intreadUnsignedShort()
Reads two input bytes and returns an int value in the range 0 through 65535 .
StringreadUTF()
Reads in a string that has been encoded using a modified UTF-8 format.
intskipBytes(int n)
Makes an attempt to skip over n bytes of data from the input stream, discarding the skipped bytes.