inetaddressresolver.java
来自「spam source codejasen-0.9jASEN - java An」· Java 代码 · 共 41 行
JAVA
41 行
/*
* @(#)InetAddressResolver.java 4/11/2004
*
* Copyright 2003, 2004 EveryMail Pty Ltd. All rights reserved.
* Use is subject to license terms.
*/
package org.jasen.interfaces;
import java.net.InetAddress;
import java.net.UnknownHostException;
/**
* <P>
* Resolves IP addresses to host names and vice versa.
* </P>
* <p>
* If an instance of this interface is provided to the jASEN engine it will be used.
* Otherwise the internal InetAddressResolver is used
* </p>
* @author Jason Polites
* @see org.jasen.net.JasenInetAddressResolver
*/
public interface InetAddressResolver
{
/**
* Gets the InetAddress associated with the host name or IP address provided
* @param host
* @return The InetAddress object for the given host
* @throws UnknownHostException
*/
public InetAddress getByName(String host) throws UnknownHostException;
/**
* Gets all InetAddress records associated with the host name or IP address provided
* @param host
* @return All the hosts known for the given name or IP
* @throws UnknownHostException
*/
public InetAddress[] getAllByName(String host) throws UnknownHostException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?