Class IOStreams
java.lang.Object
org.monte.media.io.IOStreams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCopies the source file into the provided target file.static longcopy(InputStream source, ImageOutputStream target) Copies the remainder of the source stream into the provided target stream.static longcopy(InputStream source, ImageOutputStream target, long n) Copies up to the specified number of bytes from the remainder of the source stream into the provided target stream.
-
Constructor Details
-
IOStreams
public IOStreams()
-
-
Method Details
-
copy
Copies the source file into the provided target file.- Parameters:
source- the source filetarget- the target file- Throws:
IOException- if an I/O error occurs
-
copy
Copies the remainder of the source stream into the provided target stream.- Parameters:
source- the source streamtarget- the target stream- Returns:
- number of copied bytes
- Throws:
IOException- if an I/O error occurs
-
copy
Copies up to the specified number of bytes from the remainder of the source stream into the provided target stream.- Parameters:
source- the source streamtarget- the target streamn- the maximal number of bytes to copy- Returns:
- actual number of copied bytes
- Throws:
IOException- if an I/O error occurs
-