Class Copier
java.lang.Object
slash.navigation.download.actions.Copier
Copies an
InputStream to an OutputStream and notifies about it.- Author:
- Christian Pesch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcopy(InputStream input, OutputStream output, long startByte, Long bytes) longcopyAndClose(File from, File to) longcopyAndClose(InputStream input, OutputStream output, long startByte, Long expectingBytes)
-
Constructor Details
-
Method Details
-
copyAndClose
- Throws:
IOException
-
copyAndClose
public long copyAndClose(InputStream input, OutputStream output, long startByte, Long expectingBytes) throws IOException - Throws:
IOException
-
copy
public long copy(InputStream input, OutputStream output, long startByte, Long bytes) throws IOException - Throws:
IOException
-