resolver.java

来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 33 行

JAVA
33
字号
/*
 * $Id: Resolver.java,v 1.1 2003/11/25 11:52:21 epr Exp $
 */
package org.jnode.net;

import java.net.UnknownHostException;

/**
 * @author epr
 */
public interface Resolver {
	
	/**
	 * Gets the address(es) of the given hostname.
	 * @param hostname
	 * @return All addresses of the given hostname. The returned array is at least 1 address long.
	 * @throws UnknownHostException
	 */
	public ProtocolAddress[] getByName(String hostname)
	throws UnknownHostException;

	/**
	 * Gets the hostname of the given address.
	 * @param address
	 * @return All hostnames of the given hostname. The returned array is at least 1 hostname long.
	 * @throws UnknownHostException
	 */
	public String[] getByAddress(ProtocolAddress address)
	throws UnknownHostException;	
	

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?