java.lang.Object
java.io.OutputStream
com.act365.net.tcp.TCPJOutputStream
- public class TCPJOutputStream
- extends java.io.OutputStream
Writes to a TCPJ 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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
socket
TCPJSocketImpl socket
TCPJOutputStream
public TCPJOutputStream(TCPJSocketImpl socket)
- Creates an output stream to write to the given socket.
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.