public class JarClassPathElement extends Object implements ClassPathElement
| Modifier and Type | Field and Description |
|---|---|
static int |
JAVA_VERSION |
static String |
META_INF_VERSIONS |
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.
|
Path |
getRoot() |
static byte[] |
readStreamContents(InputStream inputStream) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfromPathpublic static final int JAVA_VERSION
public static final String META_INF_VERSIONS
public JarClassPathElement(Path root)
public Path getRoot()
getRoot in interface ClassPathElementpublic 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 © 2021 JBoss by Red Hat. All rights reserved.