|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.PingOO.DLAI.PPM.io.ExtendedDataInputStream
Reads datas on an InputStream. The class can get char, chars array, bytes, bytes array or String lines from a stream.
| Field Summary | |
private java.io.DataInputStream |
dataInputStream
The DataInputStream to which is delegated some parts of the job. |
private java.io.InputStream |
inputStream
The InputStream associated with this reader. |
| Constructor Summary | |
ExtendedDataInputStream(java.io.InputStream in)
Creates an ExtendedDataInputStream intended to retreive datas from an InputStream. |
|
| Method Summary | |
void |
close()
|
int |
read(byte[] byteBuffer)
Reads a bytes array from the InputStream |
int |
read(byte[] byteBuffer,
int off,
int length)
Reads a bytes array from the InputStream |
byte |
readByte()
Reads one byte on the underlying InputStream. |
char |
readChar()
Reads a character on the underlying InputStream. |
int |
readInt()
Reads one int on the underlying InputStream. |
java.lang.String |
readLine()
Reads a line from the stream and return it. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private java.io.InputStream inputStream
private java.io.DataInputStream dataInputStream
| Constructor Detail |
public ExtendedDataInputStream(java.io.InputStream in)
throws java.lang.NullPointerException
in - The underlying stream need to get datas.| Method Detail |
public final int read(byte[] byteBuffer)
throws java.io.IOException
byteBuffer - The buffer into which the data is read.
public final int read(byte[] byteBuffer,
int off,
int length)
throws java.io.IOException
byteBuffer - The buffer into which the data is read.off - The start offset of the data.lenght - The maximum number of bytes read.
public final byte readByte()
throws java.io.IOException
public final int readInt()
throws java.io.IOException
public final char readChar()
throws java.io.IOException
public final java.lang.String readLine()
throws java.io.IOException
public final void close()
throws java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||