FileObjectUtils.@Deprecated public final class FileUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
copyContent(FileObject srcFile,
FileObject destFile)
Deprecated.
|
static byte[] |
getContent(FileObject file)
Deprecated.
|
static void |
writeContent(FileObject file,
OutputStream output)
Deprecated.
|
@Deprecated public static void copyContent(FileObject srcFile, FileObject destFile) throws IOException
FileObjectUtils.writeContent(FileObject, FileObject).srcFile - The source FileObject.destFile - The target FileObjectIOException - If an error occurs copying the file.FileContent.write(FileContent),
FileContent.write(FileObject)@Deprecated public static byte[] getContent(FileObject file) throws IOException
FileObjectUtils.getContentAsByteArray(FileObject).file - The file to get the content of.IOException - if the file content cannot be accessed.@Deprecated public static void writeContent(FileObject file, OutputStream output) throws IOException
FileObjectUtils.writeContent(FileObject, OutputStream).file - The FileObject to write.output - The OutputStream to write to.IOException - if an error occurs writing the file.FileContent.write(OutputStream)Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.