com.act365.net.tcp
Class TCPJOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--com.act365.net.tcp.TCPJOutputStream

public class TCPJOutputStream
extends java.io.OutputStream

Writes to a TCPJ socket.


Constructor Summary
TCPJOutputStream(com.act365.net.tcp.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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCPJOutputStream

public TCPJOutputStream(com.act365.net.tcp.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.
Overrides:
write in class java.io.OutputStream

write

public void write(byte[] buffer)
           throws java.io.IOException
Writes an entire buffer.
Overrides:
write in class java.io.OutputStream

write

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

close

public void close()
           throws java.io.IOException
Closes the output stream.
Overrides:
close in class java.io.OutputStream