|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jameleon.util.JameleonUtility
public class JameleonUtility
Method Summary | |
---|---|
protected static void |
closeInputStream(InputStream is)
|
static String |
convertNullToString(String str)
|
static void |
createDirStructure(File f)
Ensures that a directory structure is created. |
static String |
createErrMsg(String msg)
Formats the error message. |
static String |
decodeTextToXML(String str)
|
static String |
decodeXMLToText(String str)
|
static void |
deleteDirStructure(File f)
Deletes the given directory/file and all child files. |
static String |
executionTimeToString(long time)
|
static String |
fixFileSeparators(String path)
|
static String |
fixFileSeparators(String path,
String fileSeparator)
|
static String |
getEndingPath(File path,
String file)
|
static String |
getEndingPath(String path,
File file)
|
static String |
getEndingPath(String path,
String file)
|
static String |
getFileNameFromPath(String path)
|
static String |
getFileNameFromScriptPath(String path)
|
static InputStream |
getInputStream(String className,
Object callingClass)
|
static String |
getStack(Throwable t)
A helper method to get the stack track of a throwable as a String |
static FunctionalPoint |
loadFunctionalPoint(String className,
Object callingClass)
|
static void |
recordResultsToFile(File f,
String content)
Write some text to a file who's directory may or may not exist. |
static void |
recordResultsToFile(File f,
String content,
String encoding)
Write some text to a file who's directory may or may not exist. |
static String |
stripHtmlComments(String text)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static FunctionalPoint loadFunctionalPoint(String className, Object callingClass)
protected static void closeInputStream(InputStream is)
public static InputStream getInputStream(String className, Object callingClass)
public static String getStack(Throwable t)
t
- The exception to get the stack trace from.
public static String createErrMsg(String msg)
msg
- - The message to format.
msg
.public static void recordResultsToFile(File f, String content) throws IOException
f
- - The file to write to.content
- - The content to write.
IOException
- - If the directory structure could not be created or if the file could not be written to.public static void recordResultsToFile(File f, String content, String encoding) throws IOException
f
- - The file to write to.content
- - The content to write.encoding
- - The encoding type to write to.
IOException
- - If the directory structure could not be created or if the file could not be written to.public static void createDirStructure(File f)
f
- The directory to create the structure.public static void deleteDirStructure(File f)
f
- The directory/file to delete.public static String decodeXMLToText(String str)
public static String decodeTextToXML(String str)
public static String executionTimeToString(long time)
public static String stripHtmlComments(String text)
public static String convertNullToString(String str)
public static String getEndingPath(String path, String file)
public static String getEndingPath(String path, File file)
public static String getEndingPath(File path, String file)
public static String getFileNameFromPath(String path)
public static String getFileNameFromScriptPath(String path)
public static String fixFileSeparators(String path)
path
- a path using forward slashes
public static String fixFileSeparators(String path, String fileSeparator)
path
- a path using forward slashesfileSeparator
- the character to replace the forward slashes
fileSeparator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |