KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > format > util > Loader


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9
10 package org.jboss.portal.format.util;
11
12 import java.io.InputStream JavaDoc;
13
14 /**
15  * A generic interface which define loading capabilities.
16  * The name format must follow the regular expression : ^(/[-a-zA-Z0-9_\.]+)+$
17  *
18  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
19  * @version $Revision: 1.2 $
20  */

21 public interface Loader
22 {
23
24    String JavaDoc NAME_VALIDATOR = "^(/[-a-zA-Z0-9_\\.]+)+$";
25
26    /**
27     * Returns an InputStream or null if not found.
28     */

29    InputStream JavaDoc load(String JavaDoc path);
30 }
31
Popular Tags