Package org.apache.commons.vfs2
Class FileUtil
- java.lang.Object
-
- org.apache.commons.vfs2.FileUtil
-
@Deprecated public final class FileUtil extends java.lang.Object
Deprecated.UseFileObjectUtils.Utility methods for dealing with FileObjects.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidcopyContent(FileObject srcFile, FileObject destFile)Deprecated.static byte[]getContent(FileObject file)Deprecated.static voidwriteContent(FileObject file, java.io.OutputStream output)Deprecated.
-
-
-
Method Detail
-
copyContent
@Deprecated public static void copyContent(FileObject srcFile, FileObject destFile) throws java.io.IOException
Deprecated.Copies the content from a source file to a destination file.- Parameters:
srcFile- The source FileObject.destFile- The target FileObject- Throws:
java.io.IOException- If an error occurs copying the file.- See Also:
FileContent.write(FileContent),FileContent.write(FileObject)
-
getContent
@Deprecated public static byte[] getContent(FileObject file) throws java.io.IOException
Deprecated.Returns the content of a file, as a byte array.- Parameters:
file- The file to get the content of.- Returns:
- The content as a byte array.
- Throws:
java.io.IOException- if the file content cannot be accessed.
-
writeContent
@Deprecated public static void writeContent(FileObject file, java.io.OutputStream output) throws java.io.IOException
Deprecated.Writes the content of a file to an OutputStream.- Parameters:
file- The FileObject to write.output- The OutputStream to write to.- Throws:
java.io.IOException- if an error occurs writing the file.- See Also:
FileContent.write(OutputStream)
-
-