gr.uoa.di.madgik.commons.utils
Class FileUtils
java.lang.Object
gr.uoa.di.madgik.commons.utils.FileUtils
public class FileUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUtils
public FileUtils()
ReadFileToString
public static String ReadFileToString(File file)
throws IOException
- Throws:
IOException
MakeFileExecutable
public static void MakeFileExecutable(File file)
throws Exception
- Throws:
Exception
MakeFileReadWriteOwner
public static void MakeFileReadWriteOwner(File file)
throws Exception
- Throws:
Exception
MakeFilePermissions
public static void MakeFilePermissions(File file,
String perms)
throws Exception
- Throws:
Exception
Copy
public static void Copy(File source,
OutputStream stream)
throws IOException
- Throws:
IOException
Copy
public static void Copy(InputStream stream,
File target)
throws IOException
- Throws:
IOException
Copy
public static void Copy(File src,
File dest)
throws IOException
- Throws:
IOException
Copy
public static void Copy(File src,
RandomAccessFile dest,
boolean Compress)
throws IOException
- Throws:
IOException
Copy
public static void Copy(RandomAccessFile src,
File dest,
boolean Uncompress)
throws IOException
- Throws:
IOException
CleanUp
public static void CleanUp(File target)
Copyright © 2013. All Rights Reserved.