From b906e7533bafa79d979c2e7b7d56bae54fa2c361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Prante?= Date: Thu, 4 Jan 2024 11:48:08 +0100 Subject: [PATCH] add test for showing jbig2 support --- .../xbib/graphics/pdfbox/test/JBig2Test.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 graphics-pdfbox/src/test/java/org/xbib/graphics/pdfbox/test/JBig2Test.java diff --git a/graphics-pdfbox/src/test/java/org/xbib/graphics/pdfbox/test/JBig2Test.java b/graphics-pdfbox/src/test/java/org/xbib/graphics/pdfbox/test/JBig2Test.java new file mode 100644 index 0000000..2fdbec5 --- /dev/null +++ b/graphics-pdfbox/src/test/java/org/xbib/graphics/pdfbox/test/JBig2Test.java @@ -0,0 +1,20 @@ +package org.xbib.graphics.pdfbox.test; + +import org.junit.jupiter.api.Test; + +import javax.imageio.ImageIO; +import java.util.logging.Level; +import java.util.logging.Logger; + +public class JBig2Test { + + private static final Logger logger = Logger.getLogger(JBig2Test.class.getName()); + + @Test + public void checkPlugins() { + ImageIO.scanForPlugins(); + for (String suffix : ImageIO.getReaderFileSuffixes()) { + logger.log(Level.INFO, "ImageIO suffix: " + suffix); + } + } +}