com.act365.net.tcp
Class TCPJInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--com.act365.net.tcp.TCPJInputStream
- public class TCPJInputStream
- extends java.io.InputStream
TCPJInputStream
reads data from a TCPJ socket.
Constructor Summary |
TCPJInputStream(com.act365.net.tcp.TCPJSocketImpl 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.io.InputStream |
available, mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TCPJInputStream
public TCPJInputStream(com.act365.net.tcp.TCPJSocketImpl socket)
read
public int read()
throws java.io.IOException
- Reads a single byte.
- Overrides:
read
in class java.io.InputStream
read
public int read(byte[] buffer)
throws java.io.IOException
- Reads an entire buffer.
- Overrides:
read
in class java.io.InputStream
read
public int read(byte[] buffer,
int offset,
int count)
throws java.io.IOException
- Reads a partial buffer.
- Overrides:
read
in class java.io.InputStream
close
public void close()
throws java.io.IOException
- Closes the stream.
- Overrides:
close
in class java.io.InputStream