java.io.Closeable, java.lang.AutoCloseablepublic static class CoffeeIOPipe.CoffeePipeSocket
extends java.net.Socket
| Constructor | Description | 
|---|---|
| CoffeePipeSocket(java.net.InetAddress addr,
                CoffeeIOPipe myPipe,
                CoffeeIOPipe friendPipe) | Constructs a fake pipey socket. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | close() | |
| java.net.InetAddress | getInetAddress() | |
| CoffeeIOPipe.CMInputStream | getInputStream() | |
| CoffeeIOPipe.CMOutputStream | getOutputStream() | |
| boolean | isClosed() | |
| boolean | isConnected() | |
| void | shutdownInput() | |
| void | shutdownOutput() | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbind, connect, connect, getChannel, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOption, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, supportedOptions, toStringpublic CoffeePipeSocket(java.net.InetAddress addr,
                        CoffeeIOPipe myPipe,
                        CoffeeIOPipe friendPipe)
                 throws java.io.IOException
addr - the fake address to use when asked.myPipe - the pipe to one side of the socketfriendPipe - the pipe to the other side of the socketjava.io.IOException - an exception creating the pipepublic void shutdownInput()
                   throws java.io.IOException
shutdownInput in class java.net.Socketjava.io.IOExceptionpublic void shutdownOutput()
                    throws java.io.IOException
shutdownOutput in class java.net.Socketjava.io.IOExceptionpublic boolean isConnected()
isConnected in class java.net.Socketpublic boolean isClosed()
isClosed in class java.net.Socketpublic void close()
           throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.net.Socketjava.io.IOExceptionpublic CoffeeIOPipe.CMInputStream getInputStream() throws java.io.IOException
getInputStream in class java.net.Socketjava.io.IOExceptionpublic CoffeeIOPipe.CMOutputStream getOutputStream() throws java.io.IOException
getOutputStream in class java.net.Socketjava.io.IOExceptionpublic java.net.InetAddress getInetAddress()
getInetAddress in class java.net.Socket