|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.utils.FileCopier
public class FileCopier
This class provides common file copying code
| Nested Class Summary | |
|---|---|
static class |
FileCopier.IoInputException
|
static class |
FileCopier.IoOutputException
|
| Method Summary | |
|---|---|
static void |
copyFile(java.io.File sourceFile,
java.io.File destinationFile)
Deprecated. since 3.1, use FileUtils.copyFile(); |
static void |
copyStreams(java.io.InputStream inputStream,
java.io.OutputStream outputStream)
Copies one stream to another. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
@Deprecated
public static void copyFile(java.io.File sourceFile,
java.io.File destinationFile)
FileUtils.copyFile();
sourceFile - destinationFile -
public static void copyStreams(java.io.InputStream inputStream,
java.io.OutputStream outputStream)
throws FileCopier.IoOutputException,
FileCopier.IoInputException
IOUtils.copy(). Note that IOUtils does not close the outputStream, this method does.
inputStream - input stream to copy fromoutputStream - output stream to copy to
FileCopier.IoOutputException - IOException thrown in case of output error
FileCopier.IoInputException - IOException thrown in case of input error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||