Class MultipleItemsWrapperClasspathItem
java.lang.Object
de.simonkerstan.ee.core.classpath.MultipleItemsWrapperClasspathItem
- All Implemented Interfaces:
ClasspathItem,AutoCloseable
Multiple items in the classpath addressed as one. All items are visited in the order they are added to this wrapper.
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
-
MultipleItemsWrapperClasspathItem
public MultipleItemsWrapperClasspathItem()
-
-
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
-