|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.enterprisedt.net.ftp.SocketUtils
public class SocketUtils
Utility class that allows 1.4 socket methods to be called while still being able to be compiled in 1.1.x
| Constructor Summary | |
|---|---|
SocketUtils()
|
|
| Method Summary | |
|---|---|
static java.net.Socket |
createSocket(java.net.InetAddress host,
int port,
int timeout)
Create a connected socket, using a timeout if it is available. |
static boolean |
isConnected(java.net.Socket sock)
Test if a socket is connected by using the isConnected method, only available from JRE 1.4+. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocketUtils()
| Method Detail |
|---|
public static java.net.Socket createSocket(java.net.InetAddress host,
int port,
int timeout)
throws java.io.IOException
host - remote host to connect toport - port on remote hosttimeout - timeout in milliseconds on
java.io.IOException
public static boolean isConnected(java.net.Socket sock)
throws java.io.IOException
sock - socket to test
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||