java.io.Closeable
, java.lang.AutoCloseable
public 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, wait
bind, 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, toString
public 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.Socket
java.io.IOException
public void shutdownOutput() throws java.io.IOException
shutdownOutput
in class java.net.Socket
java.io.IOException
public boolean isConnected()
isConnected
in class java.net.Socket
public boolean isClosed()
isClosed
in class java.net.Socket
public void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
close
in class java.net.Socket
java.io.IOException
public CoffeeIOPipe.CMInputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.Socket
java.io.IOException
public CoffeeIOPipe.CMOutputStream getOutputStream() throws java.io.IOException
getOutputStream
in class java.net.Socket
java.io.IOException
public java.net.InetAddress getInetAddress()
getInetAddress
in class java.net.Socket