org.scoja.util
Class UNIXSocketOutputStream

java.lang.Object
java.io.OutputStream
org.scoja.util.UNIXSocketOutputStream
- public final class UNIXSocketOutputStream
- extends java.io.OutputStream
A UNIXSocketOutputStream is a stream to write to a UNIXSocket
UNIXSocketOutputStream is meant for writing streams of raw bytes
|
Method Summary |
void |
close()
Closes this UNIXSocket output stream and releases any system resources
associated with this stream. |
void |
write(byte[] b)
Writes b.length bytes from the specified byte array
to this UNIXSocket output stream. |
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array
starting at offset off to this UNIXSocket output stream. |
void |
write(int b)
Writes the specified byte to this UNIXSocket output stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
socket
private UNIXSocket socket
UNIXSocketOutputStream
public UNIXSocketOutputStream(UNIXSocket us)
write
public void write(int b)
throws java.io.IOException
- Writes the specified byte to this UNIXSocket output stream. Implements
the
write method of OutputStream.
write
public void write(byte[] b)
throws java.io.IOException
- Writes
b.length bytes from the specified byte array
to this UNIXSocket output stream.
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Writes
len bytes from the specified byte array
starting at offset off to this UNIXSocket output stream.
close
public void close()
throws java.io.IOException
- Closes this UNIXSocket output stream and releases any system resources
associated with this stream. This UNIXSocket output stream may no longer
be used for writing bytes.
If this stream has an associated channel then the channel is closed
as well.