|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xdoclet.util.FileUtils
Utility methods for dealing with directories and zip files.
Constructor Summary | |
FileUtils()
|
Method Summary | |
static InputStream |
getResourceAsStream(File file,
String resourcePath)
Returns an InputStream for a resource relative to a file. |
static File |
getRoot(Class clazz)
Returns the root directory of the package hierarchy where this class is located. |
static boolean |
isJar(File file)
Returns true if the file can be read as a zip file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileUtils()
Method Detail |
public static InputStream getResourceAsStream(File file, String resourcePath)
file
- directory or zip/jarresourcePath
- the path of the resource, relative to file.
public static boolean isJar(File file)
file
- the file to test.
public static File getRoot(Class clazz)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |