core/src/main/java/org/apache/commons/vfs2/FileUtil.java
/**
     * Copies the content from a source file to a destination file.
     * @param srcFile The source FileObject.
     * @param destFile The target FileObject
     * @throws IOException If an error occurs copying the file.
     */
Copies the content from a source file to a destination file.
@param srcFile The source FileObject.
@param destFile The target FileObject
@throws IOException If an error occurs copying the file.
Copies the content from a source file to a destination file . @param srcFile The source FileObject . @param destFile The target FileObject @throws IOException If an error occurs copying the file .
public static void copyContent(final FileObject srcFile,
                                   final FileObject destFile)
        throws IOException
    {
        final OutputStream outstr = destFile.getContent().getOutputStream();
        try
        {
            writeContent(srcFile, outstr);
        }
        finally
        {
            outstr.close();
        }
    }
public static void copyContent ( final FileObject srcFile , final FileObject destFile ) throws IOException { final OutputStream outstr = destFile . getContent ( ) . getOutputStream ( ) ; try { writeContent ( srcFile , outstr ) ; } finally { outstr . close ( ) ; } }
Copies the content from a source file to a destination file.
Copies the content from a source file to a destination file .
// Create the output stream via getContent(), to pick up the // validation it does