|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.util.FileUtils
public class FileUtils
Utility methods for dumping streams to disk and copying files, etc..
Constructor Summary | |
---|---|
FileUtils()
|
Method Summary | |
---|---|
static long |
copyFile(java.io.File source,
java.io.File destination)
Copies the specified file to the specified location. |
static long |
copyFile(java.io.File source,
java.io.File destination,
ProgressReporter pr)
Copies the specified file to the specified location. |
static long |
getCrc(java.io.File f)
Returns the CRC of the specified file. |
static long |
getCrc(java.io.InputStream in)
Returns the CRC of the specified InputStream. |
static long |
saveStream(java.io.File f,
java.io.InputStream in)
Saves the specified stream to a file and returns the number of bytes written. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileUtils()
Method Detail |
---|
public static long copyFile(java.io.File source, java.io.File destination) throws java.io.IOException
java.io.IOException
public static long copyFile(java.io.File source, java.io.File destination, ProgressReporter pr) throws java.io.IOException
java.io.IOException
public static long saveStream(java.io.File f, java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static long getCrc(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static long getCrc(java.io.File f) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |