01: /*
02: * Copyright 2007 Gerd Ziegler (www.gerdziegler.de)
03: * Licensed under the Apache License, Version 2.0 (the "License");
04: * you may not use this file except in compliance with the License.
05: * You may obtain a copy of the License at
06: * http://www.apache.org/licenses/LICENSE-2.0
07: * Unless required by applicable law or agreed to in writing,
08: * software distributed under the License is distributed on an
09: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
10: * either express or implied. See the License for the specific
11: * language governing permissions and limitations under the License.
12: * @author www.gerdziegler.de
13: */
14: package org.ztemplates.classpath;
15:
16: import java.io.InputStream;
17:
18: public interface ZClassPathItem {
19:
20: public abstract ZClassPathItem[] list() throws Exception;
21:
22: public abstract String getRelativePath(ZClassPathItem root)
23: throws Exception;
24:
25: public abstract String getName() throws Exception;
26:
27: public abstract boolean isFile() throws Exception;
28:
29: public abstract boolean isDirectory() throws Exception;
30:
31: public abstract InputStream getInputStream() throws Exception;
32: }
|