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

Quick Search    Search Deep

org.scoja.util
Class UNIXSocketOutputStream  view UNIXSocketOutputStream download UNIXSocketOutputStream.java

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.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


Field Summary
private  UNIXSocket socket
           
 
Constructor Summary
UNIXSocketOutputStream(UNIXSocket us)
           
 
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.io.OutputStream
flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

socket

private UNIXSocket socket
Constructor Detail

UNIXSocketOutputStream

public UNIXSocketOutputStream(UNIXSocket us)
Method Detail

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.