FileDocCategorySizeDatePackage
jdk12InetAddressAction.javaAPI DocJMF 2.1.1e1260Mon May 12 12:20:46 BST 2003com.sun.media.util

jdk12InetAddressAction

public class jdk12InetAddressAction extends Object implements PrivilegedAction

Fields Summary
public static Constructor
cons
private InetAddress
addr
private String
method
private String
arg
Constructors Summary
public jdk12InetAddressAction(InetAddress addr, String method, String arg)

	try {
	    cons = jdk12InetAddressAction.class.getConstructor(new Class[] {
	     InetAddress.class, String.class, String.class});
	} catch (Throwable e) {
	}
     
	this.addr = addr;
	this.method = method;
	this.arg = arg;
    
Methods Summary
public java.lang.Objectrun()

	try {
	    if (method.equals("getLocalHost"))
		return InetAddress.getLocalHost();
	    else if (method.equals("getAllByName"))
		return InetAddress.getAllByName(arg);
	    else if (method.equals("getByName"))
		return InetAddress.getByName(arg);
	    else if (method.equals("getHostName"))
		return addr.getHostName();
	    else
		return null;
	} catch (Throwable t) {
	    return null;
	}