Class JarClasspathItem
java.lang.Object
de.simonkerstan.ee.core.classpath.JarClasspathItem
- All Implemented Interfaces:
ClasspathItem,AutoCloseable
Classpath item for a jar file.
FOR INTERNAL USE ONLY. THE API CAN CHANGE AT ANY TIME.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getChildren(String path) Get the children of a path.getResourceAsStream(String path) Get an input stream for a resource.booleanisDirectory(String path) Test whether a path points to a directory.booleanisResourceExisting(String path) Test whether a resource exists.
-
Constructor Details
-
JarClasspathItem
Create a new JAR classpath item.- Parameters:
jarFilePath- The path to the jar file to be used- Throws:
IOException- If the jar file cannot be opened
-
-
Method Details
-
isResourceExisting
Description copied from interface:ClasspathItemTest whether a resource exists.- Specified by:
isResourceExistingin interfaceClasspathItem- Parameters:
path- Path to the resource- Returns:
trueif the resource exists,falseotherwise
-
isDirectory
Description copied from interface:ClasspathItemTest whether a path points to a directory.- Specified by:
isDirectoryin interfaceClasspathItem- Parameters:
path- Path to the resource- Returns:
trueif the path points to a directory,falseotherwise
-
getChildren
Description copied from interface:ClasspathItemGet the children of a path.- Specified by:
getChildrenin interfaceClasspathItem- Parameters:
path- Path to the resource- Returns:
- List of children
-
getResourceAsStream
Description copied from interface:ClasspathItemGet an input stream for a resource.- Specified by:
getResourceAsStreamin interfaceClasspathItem- Parameters:
path- Path to the resource- Returns:
- Input stream for the resource
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-