Class ResourceUtil
java.lang.Object
com.github.weisj.jsvg.util.ResourceUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanisSupportedMimeType(@NotNull String mimeType) static @Nullable RenderableResourceloadImage(@NotNull DomDocument document, @NotNull URI uri) private static @Nullable BufferedImageloadToBufferedImage(@NotNull URI uri) private static @Nullable BufferedImagereadPossiblyCorruptedFile(@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 DomDocument document, @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
-