public class FileCopier extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FileCopier.IoInputException |
static class |
FileCopier.IoOutputException |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyStreams(InputStream inputStream,
OutputStream outputStream)
Copies one stream to another.
|
public static void copyStreams(InputStream inputStream, OutputStream outputStream) throws FileCopier.IoOutputException, FileCopier.IoInputException
IOUtils.copy(InputStream, OutputStream). Note that IOUtils does not close the outputStream, this method does.inputStream - input stream to copy fromoutputStream - output stream to copy toFileCopier.IoOutputException - IOException thrown in case of output errorFileCopier.IoInputException - IOException thrown in case of input errorCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.