public class JarClassPathElement extends Object implements ClassPathElement
EMPTY| Constructor and Description |
|---|
JarClassPathElement(Path root) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Manifest |
getManifest() |
ProtectionDomain |
getProtectionDomain(ClassLoader classLoader) |
Set<String> |
getProvidedResources()
Returns a set of all known resources.
|
ClassPathResource |
getResource(String name)
Loads a resource from the class path element, or null if it does not exist.
|
static byte[] |
readStreamContents(InputStream inputStream) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfromPathpublic JarClassPathElement(Path root)
public ClassPathResource getResource(String name)
ClassPathElementgetResource in interface ClassPathElementname - The resource to loadpublic Set<String> getProvidedResources()
ClassPathElementgetProvidedResources in interface ClassPathElementpublic ProtectionDomain getProtectionDomain(ClassLoader classLoader)
getProtectionDomain in interface ClassPathElementpublic Manifest getManifest()
getManifest in interface ClassPathElementpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic static byte[] readStreamContents(InputStream inputStream) throws IOException
IOExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.