public final class JarFiles extends Object
Modifier and Type | Method and Description |
---|---|
static Path |
getJarPath(Class<?> type)
Gets the
Path of the JAR for the specified type. |
static URI |
getJarURI(Class<?> type)
Gets the
URI of the JAR for the specified type. |
static URI |
getJarURI(URI jarResourceURI)
Extracts the jar URI part from a jar resource URI.
|
static FileSystem |
newJarFileSystem(URI jarURI)
Creates a new JAR
FileSystem for the specified JAR URI . |
public static Path getJarPath(Class<?> type) throws URISyntaxException
type
- a type included in the JARPath
of the JAR for the specified typeURISyntaxException
public static URI getJarURI(Class<?> type) throws URISyntaxException
URI
of the JAR for the specified type.type
- a type included in the JARURI
of the JAR for the specified typeURISyntaxException
public static URI getJarURI(URI jarResourceURI)
jar:<jarURIPart>!/<resource entry>
.jarResourceURI
- a jar resource URIpublic static FileSystem newJarFileSystem(URI jarURI) throws IOException
FileSystem
for the specified JAR URI
.jarURI
- the JAR URI
FileSystem
for the specified JAR URI
IOException
Copyright © 2002–2015 SoftSmithy. All rights reserved.