You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2026/01/05 19:43:26 UTC
(commons-imaging) 05/17: Javadoc
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 9bc040474724ba8e6e279f7fcdaec84ea2bf4ea8
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Jan 5 14:10:02 2026 -0500
Javadoc
---
.../imaging/formats/jpeg/segments/UnknownSegment.java | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/UnknownSegment.java b/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/UnknownSegment.java
index 06097378..7b25ea98 100644
--- a/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/UnknownSegment.java
+++ b/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/UnknownSegment.java
@@ -19,11 +19,29 @@ package org.apache.commons.imaging.formats.jpeg.segments;
import java.io.IOException;
import java.io.InputStream;
+/**
+ * Represents an unknown JPEG segment.
+ */
public class UnknownSegment extends AbstractGenericSegment {
+
+ /**
+ * Constructs a new unknown segment.
+ *
+ * @param marker the marker.
+ * @param bytes the segment data.
+ */
public UnknownSegment(final int marker, final byte[] bytes) {
super(marker, bytes);
}
+ /**
+ * Constructs a new unknown segment.
+ *
+ * @param marker the marker.
+ * @param markerLength the marker length.
+ * @param is the input stream.
+ * @throws IOException if an I/O error occurs.
+ */
public UnknownSegment(final int marker, final int markerLength, final InputStream is) throws IOException {
super(marker, markerLength, is);
}