Class JarClassPathElement
- java.lang.Object
-
- io.quarkus.bootstrap.classloading.JarClassPathElement
-
- All Implemented Interfaces:
ClassPathElement,Closeable,AutoCloseable
@Deprecated public class JarClassPathElement extends Object implements ClassPathElement
Deprecated.in favor ofPathTreeClassPathElementA class path element that represents a file on the file system
-
-
Field Summary
Fields Modifier and Type Field Description static intJAVA_VERSIONDeprecated.static StringMETA_INF_VERSIONSDeprecated.-
Fields inherited from interface io.quarkus.bootstrap.classloading.ClassPathElement
EMPTY
-
-
Constructor Summary
Constructors Constructor Description JarClassPathElement(Path root, boolean runtime)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T> Tapply(Function<OpenPathTree,T> func)Deprecated.Processes the content of this classpath element and returns a result.voidclose()Deprecated.ManifestgetManifest()Deprecated.ProtectionDomaingetProtectionDomain()Deprecated.Set<String>getProvidedResources()Deprecated.Returns a set of all known resources.ClassPathResourcegetResource(String name)Deprecated.Loads a resource from the class path element, or null if it does not exist.PathgetRoot()Deprecated.booleanisRuntime()Deprecated.Checks whether this is a runtime classpath elementstatic byte[]readStreamContents(InputStream inputStream)Deprecated.StringtoString()Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.quarkus.bootstrap.classloading.ClassPathElement
getDependencyKey
-
-
-
-
Field Detail
-
JAVA_VERSION
public static final int JAVA_VERSION
Deprecated.
-
META_INF_VERSIONS
public static final String META_INF_VERSIONS
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JarClassPathElement
public JarClassPathElement(Path root, boolean runtime)
Deprecated.
-
-
Method Detail
-
isRuntime
public boolean isRuntime()
Deprecated.Description copied from interface:ClassPathElementChecks whether this is a runtime classpath element- Specified by:
isRuntimein interfaceClassPathElement- Returns:
- true in case this is a runtime classpath element, otherwise - false
-
apply
public <T> T apply(Function<OpenPathTree,T> func)
Deprecated.Description copied from interface:ClassPathElementProcesses the content of this classpath element and returns a result.- Specified by:
applyin interfaceClassPathElement- Type Parameters:
T- result type- Parameters:
func- content processing function- Returns:
- processing result
-
getRoot
public Path getRoot()
Deprecated.- Specified by:
getRootin interfaceClassPathElement- Returns:
- The element root, or null if not applicable
-
getResource
public ClassPathResource getResource(String name)
Deprecated.Description copied from interface:ClassPathElementLoads a resource from the class path element, or null if it does not exist.- Specified by:
getResourcein interfaceClassPathElement- Parameters:
name- The resource to load- Returns:
- An representation of the class path resource if it exists
-
getProvidedResources
public Set<String> getProvidedResources()
Deprecated.Description copied from interface:ClassPathElementReturns a set of all known resources.- Specified by:
getProvidedResourcesin interfaceClassPathElement- Returns:
- A set representing all known resources
-
getProtectionDomain
public ProtectionDomain getProtectionDomain()
Deprecated.- Specified by:
getProtectionDomainin interfaceClassPathElement- Returns:
- The protection domain that should be used to define classes from this element
-
getManifest
public Manifest getManifest()
Deprecated.- Specified by:
getManifestin interfaceClassPathElement
-
close
public void close() throws IOExceptionDeprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
readStreamContents
public static byte[] readStreamContents(InputStream inputStream) throws IOException
Deprecated.- Throws:
IOException
-
-