Example usage for Java java.io DataInputStream fields, constructors, methods, implement or subclass
The text is from its open source code.
DataInputStream(InputStream in) Creates a DataInputStream that uses the specified underlying InputStream. |
int | available() 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. |
void | close() Closes this input stream and releases any system resources associated with the stream. |
void | mark(int readlimit) Marks the current position in this input stream. |
boolean | markSupported() Tests if this input stream supports the mark and reset methods. |
int | read(byte b[]) Reads some number of bytes from the contained input stream and stores them into the buffer array b . |
int | read(byte b[], int off, int len) Reads up to len bytes of data from the contained input stream into an array of bytes. |
int | read() Reads the next byte of data from this input stream. |
boolean | readBoolean() See the general contract of the readBoolean method of DataInput . |
byte | readByte() See the general contract of the readByte method of DataInput . |
char | readChar() See the general contract of the readChar method of DataInput . |
double | readDouble() See the general contract of the readDouble method of DataInput . |
float | readFloat() See the general contract of the readFloat method of DataInput . |
void | readFully(byte b[]) See the general contract of the readFully method of DataInput . |
void | readFully(byte b[], int off, int len) See the general contract of the readFully method of DataInput . |
int | readInt() See the general contract of the readInt method of DataInput . |
String | readLine() See the general contract of the readLine method of DataInput . |
long | readLong() See the general contract of the readLong method of DataInput . |
short | readShort() See the general contract of the readShort method of DataInput . |
int | readUnsignedByte() See the general contract of the readUnsignedByte method of DataInput . |
int | readUnsignedShort() See the general contract of the readUnsignedShort method of DataInput . |
String | readUTF() See the general contract of the readUTF method of DataInput . |
String | readUTF(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 . |
void | reset() Repositions this stream to the position at the time the mark method was last called on this input stream. |
long | skip(long n) Skips over and discards n bytes of data from the input stream. |
int | skipBytes(int n) See the general contract of the skipBytes method of DataInput . |