Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.act365.net.tcp
Class TCPJInputStream  view TCPJInputStream download TCPJInputStream.java

java.lang.Object
  extended byjava.io.InputStream
      extended bycom.act365.net.tcp.TCPJInputStream
All Implemented Interfaces:
java.io.Closeable

public class TCPJInputStream
extends java.io.InputStream

TCPJInputStream reads data from a TCPJ socket.


Field Summary
(package private)  TCPJSocketImpl socket
           
 
Constructor Summary
TCPJInputStream(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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

socket

TCPJSocketImpl socket
Constructor Detail

TCPJInputStream

public TCPJInputStream(TCPJSocketImpl socket)
Method Detail

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.