public class

FileCopier

extends Object
java.lang.Object
   ↳ com.atlassian.bamboo.utils.FileCopier

Class Overview

This class provides common file copying code

Summary

Nested Classes
class FileCopier.IoInputException  
class FileCopier.IoOutputException  
Public Methods
@Deprecated static void copyFile(File sourceFile, File destinationFile)
This method is deprecated. since 3.1, use copyFile(File, File)
static void copyStreams(InputStream inputStream, OutputStream outputStream)
Copies one stream to another.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

@Deprecated public static void copyFile (File sourceFile, File destinationFile)

This method is deprecated.
since 3.1, use copyFile(File, File)

public static void copyStreams (InputStream inputStream, OutputStream outputStream)

Copies one stream to another. In case you don't need to differentiate between read and write exceptions, always use IOUtils.copy(). Note that IOUtils does not close the outputStream, this method does.

Parameters
inputStream input stream to copy from
outputStream output stream to copy to
Throws
FileCopier.IoOutputException IOException thrown in case of output error
FileCopier.IoInputException IOException thrown in case of input error