|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.hadoop.util.ResourceUtils
public abstract class ResourceUtils
Utility class for dealing or location resources for Hadoop jobs.
| Constructor Summary | |
|---|---|
ResourceUtils()
|
|
| Method Summary | |
|---|---|
static String |
decode(String source)
Decodes the given encoded source String into an URI. |
static Resource |
findContainingJar(Class<?> clazz)
Locates the jar (within the classpath) containing the given class. |
static Resource |
findContainingJar(ClassLoader loader,
String resourceName)
Locates a jar (within the classpath) containing the given resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceUtils()
| Method Detail |
|---|
public static Resource findContainingJar(Class<?> clazz)
findContainingJar(ClassLoader, String)
instead.
clazz - the class to look for
public static Resource findContainingJar(ClassLoader loader,
String resourceName)
loader - class loader to use for locating the jarresourceName - resource to look for
public static String decode(String source)
"a" through "z",
"A" through "Z", and "0" through "9"
stay the same.
"-", "_", ".", and
"*" stay the same.
%xy format.
%xy" is interpreted as a hexadecimal
representation of the character.
source - the source string
URLDecoder.decode(String, String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||