⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 locator.java

📁 非常接近C/S操作方式的Java Ajax框架-ZK 用ZK框架使你的B/S应用程序更漂亮更易操作。 官网:www.zkoss.org
💻 JAVA
字号:
/* Locator.java{{IS_NOTE	Purpose: 	Description: 	History:	90/12/07 10:07:23, Create, Tom M. Yeh.}}IS_NOTECopyright (C) 2001 Potix Corporation. All Rights Reserved.{{IS_RIGHT	This program is distributed under GPL Version 2.0 in the hope that	it will be useful, but WITHOUT ANY WARRANTY.}}IS_RIGHT*/package org.zkoss.util.resource;import java.net.URL;import java.io.InputStream;/** * A locator that is able to locate a resource. * * @author tomyeh * @see Locators#getDefault */public interface Locator {	/** Returns the directory used to resolve the relative path, or null	 * if relative path is not allowed.	 *	 * <p>Note: if the returned directory is not null, it must end with '/'.	 */	public String getDirectory();	/**	 * Finds the resource with the given name. A resource is some data	 * (images, audio, text, etc) that can be accessed by class code in	 * a way that is independent of the location of the code.	 *	 * @return a URL for reading the resource, or null if the resource	 * could not be found or the caller doesn't have adequate privileges	 * to get the resource	 */	public URL getResource(String name);	/**	 * Returns an input stream for reading the specified resource.	 *	 * @return an input stream for reading the resource, or null if the	 * resource could not be found or the caller doesn't have adequate	 * privileges to get the resource	 */	public InputStream getResourceAsStream(String name);}

⌨️ 快捷键说明

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