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.Socket
A 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 void
close()
java.io.InputStream
getInputStream()
java.io.OutputStream
getOutputStream()
boolean
isConnected()
void
setKeepAlive(boolean keepAlive)
void
setSoTimeout(int timeout)
void
setTcpNoDelay(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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.net.Socket
- Throws:
java.io.IOException
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
- Overrides:
getInputStream
in classjava.net.Socket
- Throws:
java.io.IOException
-
getOutputStream
public java.io.OutputStream getOutputStream() throws java.io.IOException
- Overrides:
getOutputStream
in classjava.net.Socket
- Throws:
java.io.IOException
-
isConnected
public boolean isConnected()
- Overrides:
isConnected
in classjava.net.Socket
-
setSoTimeout
public void setSoTimeout(int timeout) throws java.net.SocketException
- Overrides:
setSoTimeout
in classjava.net.Socket
- Throws:
java.net.SocketException
-
setKeepAlive
public void setKeepAlive(boolean keepAlive) throws java.net.SocketException
- Overrides:
setKeepAlive
in classjava.net.Socket
- Throws:
java.net.SocketException
-
setTcpNoDelay
public void setTcpNoDelay(boolean on) throws java.net.SocketException
- Overrides:
setTcpNoDelay
in classjava.net.Socket
- Throws:
java.net.SocketException
-
-