|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjcontrol.io.InputStream
jcontrol.io.DataInputStream
jcontrol.io.GenericDataInputStream
public class GenericDataInputStream
| Field Summary | |
|---|---|
protected int |
m_endianess
The stream's endianess. |
protected InputStream |
m_in
The underlying InputStream. |
| Fields inherited from class jcontrol.io.DataInputStream |
|---|
BIG_ENDIAN, LITTLE_ENDIAN |
| Constructor Summary | |
|---|---|
protected |
GenericDataInputStream(InputStream in,
int endianess)
|
| Method Summary | |
|---|---|
int |
available()
Returns the number of bytes immediately available for reading from this stream. |
void |
close()
Closes the stream. |
void |
mark(int readlimit)
|
boolean |
markSupported()
Checks if mark() and reset() are supported
by this stream. |
int |
read()
Reads a single byte from the stream. |
void |
read(byte[] b,
int start,
int length)
Reads an array of bytes from the stream. |
boolean |
readBoolean()
Reads a boolean value, represented by a byte value of 0 (false)
of 1 (true), from the stream. |
char |
readChar()
Reads a char value from the stream. |
double |
readDouble()
Reads a double value from the stream. |
float |
readFloat()
Reads a float value from the stream. |
int |
readInt()
Reads an int value from the stream. |
long |
readLong()
Reads a long value from the stream. |
short |
readShort()
Reads a short value from the stream. |
void |
reset()
|
void |
skip(int length)
Skips data from the stream. |
| Methods inherited from class jcontrol.io.DataInputStream |
|---|
createDataInputStream, createDataInputStream |
| Methods inherited from class jcontrol.io.InputStream |
|---|
read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, notifyAll, toString, wait |
| Field Detail |
|---|
protected InputStream m_in
protected int m_endianess
| Constructor Detail |
|---|
protected GenericDataInputStream(InputStream in,
int endianess)
| Method Detail |
|---|
public boolean readBoolean()
throws IOException
DataInputStreamboolean value, represented by a byte value of 0 (false)
of 1 (true), from the stream.
readBoolean in class DataInputStreamIOException - occurs on I/O error or when the stream is closed
public char readChar()
throws IOException
DataInputStreamchar value from the stream.
readChar in class DataInputStreamIOException - occurs on I/O error or when the stream is closed
public double readDouble()
throws IOException
DataInputStreamdouble value from the stream.
readDouble in class DataInputStreamIOException - occurs on I/O error or when the stream is closed
public float readFloat()
throws IOException
DataInputStreamfloat value from the stream.
readFloat in class DataInputStreamIOException - occurs on I/O error or when the stream is closed
public int readInt()
throws IOException
DataInputStreamint value from the stream.
readInt in class DataInputStreamIOException - occurs on I/O error or when the stream is closed
public long readLong()
throws IOException
DataInputStreamlong value from the stream.
readLong in class DataInputStreamIOException - occurs on I/O error or when the stream is closed
public short readShort()
throws IOException
DataInputStreamshort value from the stream.
readShort in class DataInputStreamIOException - occurs on I/O error or when the stream is closed
public int available()
throws IOException
InputStream
available in class InputStreamIOException - occurs on I/O errors or when the stream is closed
public void close()
throws IOException
InputStream
close in class InputStreamIOException - if stream is already closedpublic void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
InputStreammark() and reset() are supported
by this stream.
markSupported in class InputStream
public int read()
throws IOException
InputStream
read in class InputStreamIOException - occurs on I/O errors or when the stream is closed
public void read(byte[] b,
int start,
int length)
throws IOException
InputStream
read in class InputStreamb - array where data is storedstart - offset within the data arraylength - number of bytes to read
IOException - occurs on I/O errors or when the stream is closed
public void reset()
throws IOException
reset in class InputStreamIOException
public void skip(int length)
throws IOException
InputStream
skip in class InputStreamlength - number of bytes to skip
IOException - occurs on I/O errors or when the stream is closed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||