Class ComSegment
- java.lang.Object
-
- org.apache.commons.imaging.common.BinaryFileParser
-
- org.apache.commons.imaging.formats.jpeg.segments.AbstractSegment
-
- org.apache.commons.imaging.formats.jpeg.segments.AbstractGenericSegment
-
- org.apache.commons.imaging.formats.jpeg.segments.ComSegment
-
public class ComSegment extends AbstractGenericSegment
-
-
Field Summary
-
Fields inherited from class org.apache.commons.imaging.formats.jpeg.segments.AbstractSegment
length, marker
-
-
Constructor Summary
Constructors Constructor Description ComSegment(int marker, byte[] segmentData)ComSegment(int marker, int markerLength, java.io.InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getComment()Returns a copy of the comment.java.lang.StringgetDescription()Gets the description.-
Methods inherited from class org.apache.commons.imaging.formats.jpeg.segments.AbstractGenericSegment
dump, dump, getSegmentData, getSegmentData, getSegmentDataAsString
-
Methods inherited from class org.apache.commons.imaging.formats.jpeg.segments.AbstractSegment
getSegmentType, toString
-
Methods inherited from class org.apache.commons.imaging.common.BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
-
-
-
Method Detail
-
getComment
public byte[] getComment()
Returns a copy of the comment.- Returns:
- a copy of the comment's bytes
-
getDescription
public java.lang.String getDescription()
Description copied from class:AbstractSegmentGets the description.- Specified by:
getDescriptionin classAbstractSegment- Returns:
- the description.
-
-