danger.net
Class IPCSocket

java.lang.Object
  extended by danger.net.IPCSocket


public final class IPCSocket
extends Object

One half of an IPC socket. Sockets exist in pairs, where each element of the pair typically lives within a different application's object space (or at least in a different thread).


Constructor Summary
IPCSocket()
          Construct an instance.
 
Method Summary
 void close()
          Close this instance.
 InputStream getInputStream()
          Get the input stream for reading from this instance.
 OutputStream getOutputStream()
          Get the output stream for writing to this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IPCSocket

public IPCSocket()
Construct an instance. It is not connected to anything.

Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException
Get the input stream for reading from this instance.

Returns:
non-null; the associated input stream
Throws:
IOException

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Get the output stream for writing to this instance.

Returns:
non-null; the associated output stream
Throws:
IOException

close

public void close()
           throws IOException
Close this instance. This closes both input and output sides.

Throws:
IOException