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 a222f4a92abdb1b42cddee4c5b85f665b3ad2518 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue May 16 10:28:56 2023 -0400 Encapsulate PngChunkIccp --- .../imaging/formats/png/chunks/PngChunkIccp.java | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkIccp.java b/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkIccp.java index 536a3648..a508b012 100644 --- a/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkIccp.java +++ b/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkIccp.java @@ -46,15 +46,18 @@ public class PngChunkIccp extends PngChunk { /** * ICC profile name. */ - public final String profileName; + private final String profileName; + /** * Compression method. */ - public final int compressionMethod; + private final int compressionMethod; + /** * Compressed profile data. */ private final byte[] compressedProfile; + /** * Uncompressed profile data. */ @@ -102,6 +105,18 @@ public class PngChunkIccp extends PngChunk { } } + public byte[] getCompressedProfile() { + return compressedProfile; + } + + public int getCompressionMethod() { + return compressionMethod; + } + + public String getProfileName() { + return profileName; + } + /** * Return a copy of the uncompressed profile data. * @return the uncompressed profile data