net.sf.sfac.file
Class FileUtils
java.lang.Object
net.sf.sfac.file.FileUtils
public class FileUtils
- extends Object
Common file operations.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUtils
public FileUtils()
copyFile
public static void copyFile(File source,
File target)
throws IOException
- Throws:
IOException
copyFile
public static void copyFile(InputStream in,
OutputStream out)
throws IOException
- Throws:
IOException
copyFile
public static void copyFile(Reader in,
Writer out)
throws IOException
- Throws:
IOException
areFilesEqual
public static boolean areFilesEqual(File f1,
File f2)
throws IOException
- Throws:
IOException
areFilesEqual
public static boolean areFilesEqual(InputStream in1,
InputStream in2)
throws IOException
- Throws:
IOException
moveFile
public static void moveFile(File source,
File target)
throws IOException
- Throws:
IOException
ensureParentDirectoryExists
public static void ensureParentDirectoryExists(File f)
throws IOException
- Throws:
IOException
deleteFile
public static void deleteFile(File fil)
throws IOException
- Throws:
IOException
renameToBackup
public static void renameToBackup(File source)
throws IOException
- Throws:
IOException
removeReservedFileCharacters
public static String removeReservedFileCharacters(String src)
isReservedFileCharacters
public static boolean isReservedFileCharacters(char ch)
isReservedFileBoundCharacters
public static boolean isReservedFileBoundCharacters(char ch)
getUncloseableStream
public static InputStream getUncloseableStream(InputStream is)
Copyright © 2012. All Rights Reserved.