public final class ResourceUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static int |
copy(java.io.InputStream input,
java.io.OutputStream output)
Copy bytes from an
InputStream to an
OutputStream. |
static java.lang.String |
getResourceAsFile(java.lang.String resourceName)
Gets resource as a file name.
|
static java.lang.String |
getResourceAsFile(java.lang.String resourceName,
java.lang.String tempDir)
Gets resource as a file name.
|
static java.net.URL |
getResourcePath(java.lang.String resourceName)
Gets a URL to the resource with given name.
|
public static java.net.URL getResourcePath(java.lang.String resourceName)
resourceName - the resource namepublic static java.lang.String getResourceAsFile(java.lang.String resourceName)
resourceName - the name of the resource to loadpublic static java.lang.String getResourceAsFile(java.lang.String resourceName,
java.lang.String tempDir)
resourceName - the resource nametempDir - the temp directory pathpublic static int copy(java.io.InputStream input,
java.io.OutputStream output)
throws java.io.IOException
InputStream to an
OutputStream.input - the InputStream to read fromoutput - the OutputStream to write tojava.io.IOException - In case of an I/O problemCopyright © 2020–2022 Axual B.V.. All rights reserved.