Class FileUtil
java.lang.Object
org.apache.commons.vfs.FileUtil
Utility methods for dealng with FileObjects.
- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
- Author:
- Adam Murdoch
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopyContent(FileObject srcFile, FileObject destFile) Copies the content from a source file to a destination file.static byte[]getContent(FileObject file) Returns the content of a file, as a byte array.static voidwriteContent(FileObject file, OutputStream outstr) Writes the content of a file to an OutputStream.
-
Method Details
-
getContent
Returns the content of a file, as a byte array.- Parameters:
file- The file to get the content of.- Throws:
IOException
-
writeContent
Writes the content of a file to an OutputStream.- Throws:
IOException
-
copyContent
Copies the content from a source file to a destination file.- Throws:
IOException
-