Closeable, AutoCloseablepublic class SlowSocket extends Socket
| Constructor | Description |
|---|---|
SlowSocket(int cps) |
Added for use by SlowHC4SocketFactory.
|
SlowSocket(int cps,
String host,
int port) |
|
SlowSocket(int cps,
String host,
int port,
InetAddress localAddr,
int localPort) |
|
SlowSocket(int cps,
String host,
int port,
InetAddress localAddress,
int localPort,
int timeout) |
| Modifier and Type | Method | Description |
|---|---|---|
InputStream |
getInputStream() |
|
OutputStream |
getOutputStream() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbind, close, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOption, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, supportedOptions, toStringpublic SlowSocket(int cps,
String host,
int port,
InetAddress localAddress,
int localPort,
int timeout)
throws IOException
IOExceptionpublic SlowSocket(int cps,
String host,
int port,
InetAddress localAddr,
int localPort)
throws IOException
cps - characters per secondhost - hostnameport - portlocalAddr - local addresslocalPort - local portIOException - if an I/O error occurs during initializationIllegalArgumentException - if cps <= 0, or if the port or
localPort values lie outside of the allowed
range between 0 and 65535public SlowSocket(int cps,
String host,
int port)
throws UnknownHostException,
IOException
cps - characters per secondhost - hostnameport - portUnknownHostException - if the name of the host can not be determined automaticallyIOException - if an I/O error occurs during initializationIllegalArgumentException - if cps <= 0, or if the port or
localPort values lie outside of the allowed
range between 0 and 65535public SlowSocket(int cps)
cps - characters per secondpublic OutputStream getOutputStream() throws IOException
getOutputStream in class SocketIOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in class SocketIOExceptionCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.