class TdsTlsSocket
extends java.net.Socket
| Modifier and Type | Field and Description |
|---|---|
private java.net.Socket |
delegate |
private java.io.InputStream |
istm |
private java.io.OutputStream |
ostm |
| Constructor and Description |
|---|
TdsTlsSocket(java.net.Socket delegate)
Constructs a TdsTlsSocket around an underlying socket.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.io.InputStream |
getInputStream() |
java.io.OutputStream |
getOutputStream() |
boolean |
isConnected() |
void |
setKeepAlive(boolean keepAlive) |
void |
setSoTimeout(int timeout) |
void |
setTcpNoDelay(boolean on) |
bind, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isInputShutdown, isOutputShutdown, sendUrgentData, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setTrafficClass, shutdownInput, shutdownOutput, toStringprivate final java.net.Socket delegate
private final java.io.InputStream istm
private final java.io.OutputStream ostm
TdsTlsSocket(java.net.Socket delegate)
throws java.io.IOException
delegate - the underlying socketjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.net.Socketjava.io.IOExceptionpublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class java.net.Socketjava.io.IOExceptionpublic java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in class java.net.Socketjava.io.IOExceptionpublic boolean isConnected()
isConnected in class java.net.Socketpublic void setSoTimeout(int timeout)
throws java.net.SocketException
setSoTimeout in class java.net.Socketjava.net.SocketExceptionpublic void setKeepAlive(boolean keepAlive)
throws java.net.SocketException
setKeepAlive in class java.net.Socketjava.net.SocketExceptionpublic void setTcpNoDelay(boolean on)
throws java.net.SocketException
setTcpNoDelay in class java.net.Socketjava.net.SocketExceptionGenerated on June 8 2013