|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
jist.swans.app.io.InputStream
jist.swans.trans.TcpInputStream
public class TcpInputStream
SWANS Implementation of InputStream for Socket.
| Field Summary | |
|---|---|
(package private) boolean |
isClosed
The closed state of the output stream. |
(package private) SocketInterface.TcpSocketInterface |
socketEntity
Entity reference to Socket object. |
| Constructor Summary | |
|---|---|
TcpInputStream(SocketInterface.TcpSocketInterface entity)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this input stream and releases any system resources associated with the stream. |
int |
read()
Reads the next byte of data from the input stream. |
int |
read(byte[] b)
Reads some number of bytes from the 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 input stream into an array of bytes. |
| Methods inherited from class jist.swans.app.io.InputStream |
|---|
available, mark, markSupported, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
SocketInterface.TcpSocketInterface socketEntity
boolean isClosed
| Constructor Detail |
|---|
public TcpInputStream(SocketInterface.TcpSocketInterface entity)
entity - entity reference to Socket| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class InputStreamjava.io.IOException - if an I/O error occursInputStream
public int read()
throws java.io.IOException
read in class InputStreamjava.io.IOException - if an I/O error occursInputStream
public int read(byte[] b)
throws java.io.IOException
read in class InputStreamb - the buffer into which the data is read.
java.io.IOException - if an I/O error occursInputStream
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class InputStreamb - the buffer into which the data is read.off - the start offset in array b at which the data is written.len - the maximum number of bytes to read.
java.io.IOException - if an I/O error occursInputStream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||