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

Quick Search    Search Deep

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

java.lang.Object
  extended byjava.io.OutputStream
      extended bycom.act365.net.tcp.TCPJOutputStream

public class TCPJOutputStream
extends java.io.OutputStream

Writes to a TCPJ socket.


Field Summary
(package private)  TCPJSocketImpl socket
           
 
Constructor Summary
TCPJOutputStream(TCPJSocketImpl socket)
          Creates an output stream to write to the given socket.
 
Method Summary
 void close()
          Closes the output stream.
 void write(byte[] buffer)
          Writes an entire buffer.
 void write(byte[] buffer, int offset, int count)
          Writes a partial buffer.
 void write(int oneByte)
          Writes a single byte.
 
Methods inherited from class java.io.OutputStream
flush
 
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

TCPJOutputStream

public TCPJOutputStream(TCPJSocketImpl socket)
Creates an output stream to write to the given socket.

Method Detail

write

public void write(int oneByte)
           throws java.io.IOException
Writes a single byte.


write

public void write(byte[] buffer)
           throws java.io.IOException
Writes an entire buffer.


write

public void write(byte[] buffer,
                  int offset,
                  int count)
           throws java.io.IOException
Writes a partial buffer.


close

public void close()
           throws java.io.IOException
Closes the output stream.