|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.vfs.FileUtil
public class FileUtil
Utility methods for dealng with FileObjects.
| Constructor Summary | |
|---|---|
private |
FileUtil()
|
| Method Summary | |
|---|---|
static void |
copyContent(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 void |
writeContent(FileObject file,
java.io.OutputStream outstr)
Writes the content of a file to an OutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private FileUtil()
| Method Detail |
|---|
public static byte[] getContent(FileObject file)
throws java.io.IOException
file - The file to get the content of.
java.io.IOException
public static void writeContent(FileObject file,
java.io.OutputStream outstr)
throws java.io.IOException
java.io.IOException
public static void copyContent(FileObject srcFile,
FileObject destFile)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||