Package net.sourceforge.jtds.ssl
Class TdsTlsSocket
- java.lang.Object
-
- java.net.Socket
-
- net.sourceforge.jtds.ssl.TdsTlsSocket
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
class TdsTlsSocket extends java.net.SocketA socket that mediates between JSSE and the DB server.- Version:
- $Id: TdsTlsSocket.java,v 1.3.2.1 2009-08-07 14:02:11 ickzon Exp $
- Author:
- Rob Worsnop, Mike Hutchinson
-
-
Constructor Summary
Constructors Constructor Description TdsTlsSocket(java.net.Socket delegate)Constructs a TdsTlsSocket around an underlying socket.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.io.InputStreamgetInputStream()java.io.OutputStreamgetOutputStream()booleanisConnected()voidsetKeepAlive(boolean keepAlive)voidsetSoTimeout(int timeout)voidsetTcpNoDelay(boolean on)-
Methods inherited from class java.net.Socket
bind, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOption, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isInputShutdown, isOutputShutdown, sendUrgentData, setOOBInline, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setTrafficClass, shutdownInput, shutdownOutput, supportedOptions, toString
-
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.net.Socket- Throws:
java.io.IOException
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Overrides:
getInputStreamin classjava.net.Socket- Throws:
java.io.IOException
-
getOutputStream
public java.io.OutputStream getOutputStream() throws java.io.IOException- Overrides:
getOutputStreamin classjava.net.Socket- Throws:
java.io.IOException
-
isConnected
public boolean isConnected()
- Overrides:
isConnectedin classjava.net.Socket
-
setSoTimeout
public void setSoTimeout(int timeout) throws java.net.SocketException- Overrides:
setSoTimeoutin classjava.net.Socket- Throws:
java.net.SocketException
-
setKeepAlive
public void setKeepAlive(boolean keepAlive) throws java.net.SocketException- Overrides:
setKeepAlivein classjava.net.Socket- Throws:
java.net.SocketException
-
setTcpNoDelay
public void setTcpNoDelay(boolean on) throws java.net.SocketException- Overrides:
setTcpNoDelayin classjava.net.Socket- Throws:
java.net.SocketException
-
-