java.lang.Object
de.s42.base.resources.ResourceHelper
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected static ClassLoader
static Icon
getResourceAsIcon
(Class moduleClass, String relativeResourceName, int width, int height) static Icon
getResourceAsIcon
(String absoluteResourceName, int width, int height) static Icon
getResourceAsIcon
(String absoluteResourceName, int width, int height, ClassLoader classLoader) static BufferedImage
getResourceAsImage
(Class moduleClass, String relativeResourceName) static BufferedImage
getResourceAsImage
(String absoluteResourceName) static BufferedImage
getResourceAsImage
(String absoluteResourceName, ClassLoader classLoader) static InputStream
getResourceAsStream
(Class moduleClass, String relativeResourceName) static InputStream
getResourceAsStream
(String resourceName) static InputStream
getResourceAsStream
(String resourceName, ClassLoader classLoader) getResourceAsString
(Class refClass, String relativeResourceName) getResourceAsString
(String resourceName) getResourceAsString
(String resourceName, ClassLoader classLoader) static byte[]
getZippedSingleFileResourceAsByteArray
(String resourceName) static byte[]
getZippedSingleFileResourceAsByteArray
(String resourceName, ClassLoader classLoader) static String
getZippedSingleFileResourceAsString
(String resourceName) static String
getZippedSingleFileResourceAsString
(String resourceName, ClassLoader classLoader) static boolean
hasResource
(Class refClass, String relativeResourceName) static boolean
hasResource
(String resourceName) static boolean
hasResource
(String resourceName, ClassLoader classLoader)
-
Konstruktordetails
-
ResourceHelper
private ResourceHelper()
-
-
Methodendetails
-
getDefaultClassLoader
-
hasResource
-
hasResource
-
hasResource
-
getResourceAsString
- Löst aus:
IOException
-
getResourceAsString
public static Optional<String> getResourceAsString(String resourceName, ClassLoader classLoader) throws IOException - Löst aus:
IOException
-
getResourceAsString
public static Optional<String> getResourceAsString(Class refClass, String relativeResourceName) throws IOException - Löst aus:
IOException
-
getZippedSingleFileResourceAsString
- Löst aus:
IOException
-
getZippedSingleFileResourceAsString
public static String getZippedSingleFileResourceAsString(String resourceName, ClassLoader classLoader) throws IOException - Löst aus:
IOException
-
getZippedSingleFileResourceAsByteArray
- Löst aus:
IOException
-
getZippedSingleFileResourceAsByteArray
public static byte[] getZippedSingleFileResourceAsByteArray(String resourceName, ClassLoader classLoader) throws IOException - Löst aus:
IOException
-
getResourceAsStream
-
getResourceAsStream
-
getResourceAsStream
-
getResourceAsIcon
-
getResourceAsIcon
-
getResourceAsIcon
public static Icon getResourceAsIcon(String absoluteResourceName, int width, int height, ClassLoader classLoader) -
getResourceAsImage
-
getResourceAsImage
-
getResourceAsImage
public static BufferedImage getResourceAsImage(String absoluteResourceName, ClassLoader classLoader)
-