|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jamon.util.StringUtils
public class StringUtils
| Method Summary | |
|---|---|
static java.lang.String |
byteArrayToHexString(byte[] bytes)
Convert a byte array into a hexidecimal representation. |
static java.lang.String |
capitalize(java.lang.String p_string)
Capitalize the first letter of a string. |
static java.lang.String |
classNameToFilePath(java.lang.String p_className)
Construct the relative path to a class file on the file system for a given class, without the ".class" suffix. |
static java.lang.String |
classToTemplatePath(java.lang.Class<?> p_class)
Compute the /-separated path for a given class. |
static void |
commaJoin(java.lang.StringBuilder p_builder,
java.lang.Iterable<java.lang.String> p_iterable)
Concatenate a list of strings into a single StringBuilder, with commas between
successive elements. |
static java.lang.String |
filePathToTemplatePath(java.lang.String p_path)
Convert a path using the systems path separator into a /-separated path. |
static java.lang.String |
hexify4(int p_int)
Compute the 4-digit hexidecimal represenation of an integer between 0 and
0xFFFF. |
static boolean |
isGeneratedClassFilename(java.lang.String p_className,
java.lang.String p_fileName)
Determine if the given file name could be part of a given class. |
static java.lang.String |
templatePathToClassName(java.lang.String p_path)
Convert a /-separated path into a class name. |
static java.lang.String |
templatePathToFileDir(java.lang.String p_path)
Return the directory part of a template path, in filesystem format (i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String templatePathToFileDir(java.lang.String p_path)
File.separator).
p_path - the template path
public static boolean isGeneratedClassFilename(java.lang.String p_className,
java.lang.String p_fileName)
p_className - the class namep_fileName - the file name
public static java.lang.String templatePathToClassName(java.lang.String p_path)
p_path - the /-separated path
public static java.lang.String classToTemplatePath(java.lang.Class<?> p_class)
p_class - the class
public static java.lang.String filePathToTemplatePath(java.lang.String p_path)
p_path - an OS-specific path
public static java.lang.String classNameToFilePath(java.lang.String p_className)
p_className - the class name
public static java.lang.String capitalize(java.lang.String p_string)
p_string - the string
p_string with the first letter capitalizedpublic static java.lang.String byteArrayToHexString(byte[] bytes)
bytes - the byte array
public static java.lang.String hexify4(int p_int)
0 and
0xFFFF.
p_int - the integer
public static void commaJoin(java.lang.StringBuilder p_builder,
java.lang.Iterable<java.lang.String> p_iterable)
StringBuilder, with commas between
successive elements.
p_builder - the builderp_iterable - the list of strings
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||