This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-imaging.git

commit b0e33bd6abd07e6a63edf54ee75d8712f55d93fd
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jan 3 15:23:30 2026 -0500

    Better internal name
---
 .../java/org/apache/commons/imaging/ImageDump.java | 36 ++++++++++++++++++++--
 1 file changed, 34 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/imaging/ImageDump.java 
b/src/main/java/org/apache/commons/imaging/ImageDump.java
index 28acc29c..77b8d18e 100644
--- a/src/main/java/org/apache/commons/imaging/ImageDump.java
+++ b/src/main/java/org/apache/commons/imaging/ImageDump.java
@@ -33,7 +33,13 @@ public class ImageDump {
 
     private static final Logger LOGGER = 
Logger.getLogger(ImageDump.class.getName());
 
-    private String colorSpaceTypeToName(final ColorSpace cs) {
+    /**
+     * Constructs a new instance.
+     */
+    public ImageDump() {
+    }
+
+    private String toName(final ColorSpace cs) {
         // System.out.println(prefix + ": type: "
         // + cs.getType() );
         switch (cs.getType()) {
@@ -56,16 +62,35 @@ public class ImageDump {
         }
     }
 
+    /**
+     * Dumps image information.
+     *
+     * @param src the source image.
+     * @throws IOException if an I/O error occurs.
+     */
     public void dump(final BufferedImage src) throws IOException {
         dump("", src);
     }
 
+    /**
+     * Dumps image information with a prefix.
+     *
+     * @param prefix the prefix for output.
+     * @param src the source image.
+     * @throws IOException if an I/O error occurs.
+     */
     public void dump(final String prefix, final BufferedImage src) throws 
IOException {
         LOGGER.fine(prefix + ": dump");
         dumpColorSpace(prefix, src.getColorModel().getColorSpace());
         dumpBiProps(prefix, src);
     }
 
+    /**
+     * Dumps BufferedImage properties.
+     *
+     * @param prefix the prefix for output.
+     * @param src the source image.
+     */
     public void dumpBiProps(final String prefix, final BufferedImage src) {
         final String[] keys = src.getPropertyNames();
         if (keys == null) {
@@ -77,8 +102,15 @@ public class ImageDump {
         }
     }
 
+    /**
+     * Dumps color space information.
+     *
+     * @param prefix the prefix for output.
+     * @param cs the color space.
+     * @throws IOException if an I/O error occurs.
+     */
     public void dumpColorSpace(final String prefix, final ColorSpace cs) 
throws IOException {
-        LOGGER.fine(prefix + ": type: " + cs.getType() + " (" + 
colorSpaceTypeToName(cs) + ")");
+        LOGGER.fine(prefix + ": type: " + cs.getType() + " (" + toName(cs) + 
")");
 
         if (!(cs instanceof ICC_ColorSpace)) {
             LOGGER.fine(prefix + ": Unknown ColorSpace: " + 
cs.getClass().getName());

Reply via email to