java.io
DataInputStream
Declarationpublic class DataInputStream extends InputStream implements DataInput
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.DataInputStream
All Implemented Interfaces: DataInput
Description
A data input stream lets an application read primitive Java data types from an underlying input stream in a
machine-independent way. An application uses a data output stream to write data that can later be read by a data
input stream.
Fields
protected InputStream in
Constructors
DataInputStream(InputStream in)
Methods
int available()
void close()
void mark(int readlimit)
boolean markSupported()
int read()
int read(byte[] b)
int read(byte[] b, int off, int len)
boolean readBoolean()
byte readByte()
char readChar()
double readDouble()
float readFloat()
void readFully(byte[] b)
void readFully(byte[] b, int off, int len)
int readInt()
long readLong()
short readShort()
Member Summary
int readUnsignedByte()
int readUnsignedShort()
java.lang.String readUTF()
static
java.lang.String
readUTF(DataInput in)
void reset()
long skip(long n)
int skipBytes(int n)
Inherited Member Summary
Methods inherited from class Object
equals(Object), getClass(), hashCode(), notify(), notifyAll(), toString(), wait(),
wait(), wait()
No comments:
Post a Comment