java.lang.Object
java.io.InputStream
org.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
|
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
socket
private UNIXSocket socket
UNIXSocketInputStream
public UNIXSocketInputStream(UNIXSocket us)
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.