java.lang.Object
com.github.weisj.jsvg.util.ResourceUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
isSupportedMimeType
(@NotNull String mimeType) static @Nullable RenderableResource
private static @Nullable BufferedImage
loadToBufferedImage
(@NotNull URI uri) private static @Nullable BufferedImage
readPossiblyCorruptedFile
(@NotNull InputStream inputStream)
-
Field Details
-
LOGGER
-
SUPPORTED_MIME_TYPES
-
-
Constructor Details
-
ResourceUtil
private ResourceUtil()
-
-
Method Details
-
loadImage
@Nullable public static @Nullable RenderableResource loadImage(@NotNull @NotNull URI uri) throws IOException - Throws:
IOException
-
loadToBufferedImage
@Nullable private static @Nullable BufferedImage loadToBufferedImage(@NotNull @NotNull URI uri) throws IOException - Throws:
IOException
-
isSupportedMimeType
-
readPossiblyCorruptedFile
@Nullable private static @Nullable BufferedImage readPossiblyCorruptedFile(@NotNull @NotNull InputStream inputStream) throws IOException - Throws:
IOException
-