当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 common API Documentation 英文版文档
TimeoutSocket (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档
org.jboss.net.sockets
Class TimeoutSocket
java.lang.Object
java.net.Socket
org.jboss.net.sockets.TimeoutSocket
- public class TimeoutSocket
- extends Socket
A Socket that overrides the getInputStream to return a InterruptableInputStream
- Version:
- $Revision: 1.1 $
- Author:
- Scott.Stark@jboss.org
TimeoutSocket
public TimeoutSocket(Socket s)
getInetAddress
public InetAddress getInetAddress()
getLocalAddress
public InetAddress getLocalAddress()
getPort
public int getPort()
getLocalPort
public int getLocalPort()
getRemoteSocketAddress
public SocketAddress getRemoteSocketAddress()
getLocalSocketAddress
public SocketAddress getLocalSocketAddress()
getChannel
public SocketChannel getChannel()
getInputStream
public InputStream getInputStream()
throws IOException
- Throws:
IOException
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Throws:
IOException
setTcpNoDelay
public void setTcpNoDelay(boolean on)
throws SocketException
- Throws:
SocketException
getTcpNoDelay
public boolean getTcpNoDelay()
throws SocketException
- Throws:
SocketException
setSoLinger
public void setSoLinger(boolean on,
int linger)
throws SocketException
- Throws:
SocketException
getSoLinger
public int getSoLinger()
throws SocketException
- Throws:
SocketException
sendUrgentData
public void sendUrgentData(int data)
throws IOException
- Throws:
IOException
setOOBInline
public void setOOBInline(boolean on)
throws SocketException
- Throws:
SocketException
getOOBInline
public boolean getOOBInline()
throws SocketException
- Throws:
SocketException
setSoTimeout
public void setSoTimeout(int timeout)
throws SocketException
- Throws:
SocketException
getSoTimeout
public int getSoTimeout()
throws SocketException
- Throws:
SocketException
setSendBufferSize
public void setSendBufferSize(int size)
throws SocketException
- Throws:
SocketException
getSendBufferSize
public int getSendBufferSize()
throws SocketException
- Throws:
SocketException
setReceiveBufferSize
public void setReceiveBufferSize(int size)
throws SocketException
- Throws:
SocketException
getReceiveBufferSize
public int getReceiveBufferSize()
throws SocketException
- Throws:
SocketException
setKeepAlive
public void setKeepAlive(boolean on)
throws SocketException
- Throws:
SocketException
getKeepAlive
public boolean getKeepAlive()
throws SocketException
- Throws:
SocketException
setTrafficClass
public void setTrafficClass(int tc)
throws SocketException
- Throws:
SocketException
getTrafficClass
public int getTrafficClass()
throws SocketException
- Throws:
SocketException
setReuseAddress
public void setReuseAddress(boolean on)
throws SocketException
- Throws:
SocketException
getReuseAddress
public boolean getReuseAddress()
throws SocketException
- Throws:
SocketException
close
public void close()
throws IOException
- Throws:
IOException
shutdownInput
public void shutdownInput()
throws IOException
- Throws:
IOException
shutdownOutput
public void shutdownOutput()
throws IOException
- Throws:
IOException
toString
public String toString()
isConnected
public boolean isConnected()
isBound
public boolean isBound()
isClosed
public boolean isClosed()
isInputShutdown
public boolean isInputShutdown()
isOutputShutdown
public boolean isOutputShutdown()
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.