com.atlassian.bamboo.utils
Class FileCopier
java.lang.Object
com.atlassian.bamboo.utils.FileCopier
public class FileCopier
- extends Object
This class provides common file copying code
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
copyStreams
public static void copyStreams(InputStream inputStream,
OutputStream outputStream)
throws FileCopier.IoOutputException,
FileCopier.IoInputException
- 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 fromoutputStream
- output stream to copy to
- Throws:
FileCopier.IoOutputException
- IOException thrown in case of output error
FileCopier.IoInputException
- IOException thrown in case of input error
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.