java.lang.Object
java.io.InputStream
com.act365.net.tcp.TCPJInputStream
- All Implemented Interfaces:
- java.io.Closeable
- public class TCPJInputStream
- extends java.io.InputStream
TCPJInputStream reads data from a TCPJ socket.
|
Method Summary |
void |
close()
Closes the stream. |
int |
read()
Reads a single byte. |
int |
read(byte[] buffer)
Reads an entire buffer. |
int |
read(byte[] buffer,
int offset,
int count)
Reads a partial buffer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
socket
TCPJSocketImpl socket
TCPJInputStream
public TCPJInputStream(TCPJSocketImpl socket)
read
public int read()
throws java.io.IOException
- Reads a single byte.
read
public int read(byte[] buffer)
throws java.io.IOException
- Reads an entire buffer.
read
public int read(byte[] buffer,
int offset,
int count)
throws java.io.IOException
- Reads a partial buffer.
close
public void close()
throws java.io.IOException
- Closes the stream.