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

Quick Search    Search Deep

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

java.lang.Object
  extended byjava.io.InputStream
      extended byorg.scoja.util.UNIXSocketInputStream
All Implemented Interfaces:
java.io.Closeable

public final class UNIXSocketInputStream
extends java.io.InputStream

A UNIXSocketInputStream is a stream to read from a UNIXSocket

UNIXSocketInputStream is meant for reading streams of raw bytes


Field Summary
private  UNIXSocket socket
           
 
Constructor Summary
UNIXSocketInputStream(UNIXSocket us)
           
 
Method Summary
 void close()
          Closes this unix socket input stream and releases any system resources associated with the stream.
 int read()
          Reads the specified byte from this UNIXSocket input stream.
 int read(byte[] b)
          Reads up to b.length bytes of data from this socket input stream into an array of bytes.
 int read(byte[] b, int off, int len)
          Reads up to len bytes of data from this socket input stream into an array of bytes.
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, reset, skip
 
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

UNIXSocketInputStream

public UNIXSocketInputStream(UNIXSocket us)
Method Detail

read

public int read()
         throws java.io.IOException
Reads the specified byte from this UNIXSocket input stream. Implements the read method of InputStream.


read

public int read(byte[] b)
         throws java.io.IOException
Reads up to b.length bytes of data from this socket input stream into an array of bytes. This method blocks until some input is available.


read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Reads up to len bytes of data from this socket input stream into an array of bytes. This method blocks until some input is available.


close

public void close()
           throws java.io.IOException
Closes this unix socket input stream and releases any system resources associated with the stream.