Class FileCopier

  extended by com.atlassian.bamboo.utils.FileCopier

public class FileCopier
extends java.lang.Object

This class provides common file copying code

Nested Class Summary
static class FileCopier.IoInputException
static class FileCopier.IoOutputException
Method Summary
static void copyStreams( inputStream, 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


public static void copyStreams( inputStream,
                        throws FileCopier.IoOutputException,
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.

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

Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.