|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.jaret.util.misc.MiscUtil
public class MiscUtil
Some static helper methods (mainly concerned with String manipulation).
Constructor Summary | |
---|---|
MiscUtil()
|
Method Summary | |
---|---|
static void |
copyFile(File srcFile,
File destFile)
|
static String |
getFilename(String path)
Retrieve the filename from a complete path string. |
static String |
getPath(String path)
Extract path from a complete path including filename. |
static String |
leftTrim(String str)
Removes leading whitespaces. |
static StringBuffer |
readTextFile(String completePath)
Read a textfile into a StringBuffer. |
static String |
rightTrim(String str)
Removes trailing whitespaces. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MiscUtil()
Method Detail |
---|
public static String getFilename(String path)
path
- path including filename (path separator "/" or "\")
public static String getPath(String path)
path
- path including filename (path separator "/" or "\")
public static StringBuffer readTextFile(String completePath)
completePath
- complete path of the file
public static void copyFile(File srcFile, File destFile) throws IOException
IOException
public static String leftTrim(String str)
str
- String to treat
public static String rightTrim(String str)
str
- String to treat
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |