Package com.github.kokorin.jaffree.util
Class IOUtil
java.lang.Object
com.github.kokorin.jaffree.util.IOUtil
Simple IO utils.
Kindly borrowed from commons-io.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic longcopy(InputStream input, OutputStream output, byte[] buffer) Copies everything form input to output.static longcopy(InputStream input, OutputStream output, int bufferSize) Copies everything form input to output.
-
Field Details
-
EOF
public static final int EOF- See Also:
-
-
Method Details
-
copy
Copies everything form input to output.- Parameters:
input- input streamoutput- output streambufferSize- buffer size to use- Returns:
- bytes been copied
- Throws:
IOException- Stream IO exception
-
copy
Copies everything form input to output.- Parameters:
input- input streamoutput- output streambuffer- buffer to use- Returns:
- bytes been copied
- Throws:
IOException- Stream IO exception
-