private static class JarWrapper.SourceJarURL extends Object
Modifier and Type | Field and Description |
---|---|
(package private) String |
algorithm
HTTPMD digest algorithm, or null if non-HTTPMD URL
|
private File |
baseDir
Base directory associated with relative path for JAR file, only
set in case the flatten classpath option is used.
|
(package private) String |
comment
HTTPMD digest comment, or null if non-HTTPMD URL
|
(package private) String |
digest
HTTPMD digest value, or null if non-HTTPMD URL
|
private static Pattern |
httpmdPattern |
(package private) String |
path
URL path component, excluding any HTTPMD information
|
(package private) String |
raw
raw URL string, including HTTPMD information (if any)
|
Constructor and Description |
---|
JarWrapper.SourceJarURL(String raw)
Creates SourceJarURL based on given raw URL string.
|
JarWrapper.SourceJarURL(String raw,
File baseDir)
Creates SourceJarURL based on given raw URL string that has an
individual associated base directory.
|
JarWrapper.SourceJarURL(String path,
String algorithm,
String digest,
String comment)
Creates SourceJarURL based on given components.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
(package private) JarWrapper.SourceJarURL |
resolve(JarWrapper.SourceJarURL other)
Resolves given URL relative to this URL.
|
(package private) File |
toFile()
Returns file represented by this URL.
|
(package private) File |
toFile(File base)
Returns file represented by this URL.
|
String |
toString() |
private static final Pattern httpmdPattern
final String raw
final String path
final String algorithm
final String digest
final String comment
private File baseDir
JarWrapper.SourceJarURL(String raw) throws IOException
IOException
JarWrapper.SourceJarURL(String raw, File baseDir) throws IOException
IOException
JarWrapper.SourceJarURL resolve(JarWrapper.SourceJarURL other)
File toFile()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.