Package java.io
Class DataInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- java.io.DataInputStream
-
- All Implemented Interfaces:
DataInput
public class DataInputStream extends FilterInputStream implements DataInput
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description DataInputStream(InputStream var0)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intread(byte[] var0)intread(byte[] var0, int var1, int var2)booleanreadBoolean()bytereadByte()charreadChar()doublereadDouble()floatreadFloat()voidreadFully(byte[] var0)voidreadFully(byte[] var0, int var1, int var2)intreadInt()StringreadLine()longreadLong()shortreadShort()intreadUnsignedByte()intreadUnsignedShort()StringreadUTF()static StringreadUTF(DataInput var0)intskipBytes(int var0)-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
-
-
-
-
Constructor Detail
-
DataInputStream
public DataInputStream(InputStream var0)
-
-
Method Detail
-
read
public final int read(byte[] var0) throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
public final int read(byte[] var0, int var1, int var2) throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
readBoolean
public final boolean readBoolean() throws IOException- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
public final byte readByte() throws IOException- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readChar
public final char readChar() throws IOException- Specified by:
readCharin interfaceDataInput- Throws:
IOException
-
readDouble
public final double readDouble() throws IOException- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
readFloat
public final float readFloat() throws IOException- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readFully
public final void readFully(byte[] var0) throws IOException- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
public final void readFully(byte[] var0, int var1, int var2) throws IOException- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readInt
public final int readInt() throws IOException- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readLine
public final String readLine() throws IOException
- Specified by:
readLinein interfaceDataInput- Throws:
IOException
-
readLong
public final long readLong() throws IOException- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readShort
public final short readShort() throws IOException- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readUnsignedByte
public final int readUnsignedByte() throws IOException- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readUnsignedShort
public final int readUnsignedShort() throws IOException- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
readUTF
public final String readUTF() throws IOException
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-
readUTF
public static final String readUTF(DataInput var0) throws IOException
- Throws:
IOException
-
skipBytes
public final int skipBytes(int var0) throws IOException- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException
-
-