|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 java.lang.String |
decode(java.lang.String source)
Decodes the given encoded source String into an URI. |
static org.springframework.core.io.Resource |
findContainingJar(java.lang.Class<?> clazz)
Locates the jar (within the classpath) containing the given class. |
static org.springframework.core.io.Resource |
findContainingJar(java.lang.ClassLoader loader,
java.lang.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 org.springframework.core.io.Resource findContainingJar(java.lang.Class<?> clazz)
findContainingJar(ClassLoader, String)
instead.
clazz
- the class to look for
public static org.springframework.core.io.Resource findContainingJar(java.lang.ClassLoader loader, java.lang.String resourceName)
loader
- class loader to use for locating the jarresourceName
- resource to look for
public static java.lang.String decode(java.lang.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
java.io.UnsupportedEncodingException
- when the given encoding parameter is not supportedURLDecoder.decode(String, String)
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |