public class SimulatedSocket extends Socket
Constructor and Description |
---|
SimulatedSocket(StreamManager streamManager) |
Modifier and Type | Method and Description |
---|---|
void |
connect(SocketAddress endpoint) |
void |
connect(SocketAddress endpoint,
int timeout) |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
bind, close, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toString
public SimulatedSocket(StreamManager streamManager)
public void connect(SocketAddress endpoint) throws IOException
connect
in class Socket
IOException
public void connect(SocketAddress endpoint, int timeout) throws IOException
connect
in class Socket
IOException
public InputStream getInputStream() throws IOException
getInputStream
in class Socket
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in class Socket
IOException
Copyright © 2016. All Rights Reserved.