|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infoservice.InfoServiceConnectionReader
public class InfoServiceConnectionReader
This is the implementation for reading data from an InputStream with a limitof bytes maximally read.
Field Summary | |
---|---|
private int |
m_byteLimit
This stores the currently number of bytes which can be read from the InputStream until the data limit is exhausted. |
private java.io.InputStream |
m_inputStream
This stores the InputStream where the data is read from. |
Constructor Summary | |
---|---|
InfoServiceConnectionReader(java.io.InputStream a_inputStream,
int a_byteLimit)
Constructs a new InfoServiceConnectionReader with a read-limitation for an InputStream. |
Method Summary | |
---|---|
int |
read()
Reads one byte from the underlying InputStream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.io.InputStream m_inputStream
private int m_byteLimit
Constructor Detail |
---|
public InfoServiceConnectionReader(java.io.InputStream a_inputStream, int a_byteLimit)
a_inputStream
- The InputStream where the data shall be read from.a_byteLimit
- The maximum number of bytes allowed to read from the stream.Method Detail |
---|
public int read() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |