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