cc.glsn
Class Util

java.lang.Object
  extended by cc.glsn.Util

public class Util
extends Object


Constructor Summary
Util()
           
 
Method Summary
static boolean BufferedReaderOk(BufferedReader IN)
           
static String cleanString(String In, String AllowedChars)
           
static String Cut(String S, char D, int F)
           
static boolean FileCopy(String Src, String Dst)
          Uses 1mb blocks
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

Touch

public static void Touch(String FileName)
                  throws IOException
Throws:
IOException

BufferedReaderOk

public static boolean BufferedReaderOk(BufferedReader IN)
                                throws Exception
Throws:
Exception

FileExists

public static boolean FileExists(String FileName)

SHA1

public static String SHA1(byte[] P)

SHA1

public static String SHA1(String Plain)

getUnixTime

public static int getUnixTime()

Cut

public static String Cut(String S,
                         char D,
                         int F)

FileCopy

public static boolean FileCopy(String Src,
                               String Dst)
                        throws IOException,
                               FileNotFoundException
Uses 1mb blocks

Throws:
IOException
FileNotFoundException

MD5File

public static String MD5File(String Src)
                      throws IOException
Throws:
IOException

MD5File

public static String MD5File(File Src)
                      throws IOException
Throws:
IOException

recursiveDelete

public static void recursiveDelete(String Path,
                                   boolean LeaveDir)

recursiveDelete

public static void recursiveDelete(File F,
                                   boolean LeaveDir)

readInputStream

public static String readInputStream(InputStream IS)
                              throws IOException
Throws:
IOException

cleanString

public static String cleanString(String In,
                                 String AllowedChars)