static fun copyResource(resourceName: String, destination: Path, vararg options: OpenOption): Path
(source)
Copies the content of a resource to a file.
resourceName
- The resource name.
destination
- The destination file.
options
- Options specifying how the destination file should be opened.
IOException
- If an I/O error occurs.
Return
The destination file.
static fun copyResource(resourceName: String, out: OutputStream): Long
(source)
Copies the content of a resource to an output stream.
resourceName
- The resource name.
IOException
- If an I/O error occurs.
Return
The total bytes written.