public class Util extends Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static boolean |
BufferedReaderOk(BufferedReader IN) |
static String |
cleanString(String In,
String AllowedChars) |
static String |
Cut(String S,
char D,
int F) |
static boolean |
FileCopy(File Src,
File Dst)
Uses 1mb blocks
|
static boolean |
FileCopy(String Src,
String Dst) |
static boolean |
FileExists(String FileName) |
static int |
getUnixTime() |
static String |
MD5File(File Src) |
static String |
MD5File(String Src) |
static String |
readInputStream(InputStream IS) |
static void |
recursiveDelete(File F,
boolean LeaveDir) |
static void |
recursiveDelete(String Path,
boolean LeaveDir) |
static String |
SHA1(byte[] P) |
static String |
SHA1(String Plain) |
static void |
Touch(String FileName) |
public static void Touch(String FileName) throws IOException
IOException
public static boolean BufferedReaderOk(BufferedReader IN) throws Exception
Exception
public static boolean FileExists(String FileName)
public static String SHA1(byte[] P)
public static int getUnixTime()
public static boolean FileCopy(String Src, String Dst) throws IOException, FileNotFoundException
IOException
FileNotFoundException
public static boolean FileCopy(File Src, File Dst) throws IOException, FileNotFoundException
IOException
FileNotFoundException
public static String MD5File(String Src) throws IOException
IOException
public static String MD5File(File Src) throws IOException
IOException
public static void recursiveDelete(String Path, boolean LeaveDir)
public static void recursiveDelete(File F, boolean LeaveDir)
public static String readInputStream(InputStream IS) throws IOException
IOException