Package org.ujmp.core.util
Class ResourceUtil
java.lang.Object
org.ujmp.core.util.ResourceUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
copyToFile
(String resource, File file) static byte[]
getResourceAsBytes
(String url) static InputStream
static String
static Image
static ImageIcon
loadImageIcon
(String url)
-
Constructor Details
-
ResourceUtil
public ResourceUtil()
-
-
Method Details
-
copyToFile
- Throws:
Exception
-
getResourceAsBytes
- Throws:
IOException
-
getResourceAsString
- Throws:
IOException
-
loadImage
- Throws:
IOException
-
loadImageIcon
- Throws:
IOException
-
getResourceAsStream
-