Class ComSegment
java.lang.Object
org.apache.commons.imaging.common.BinaryFileParser
org.apache.commons.imaging.formats.jpeg.segments.Segment
org.apache.commons.imaging.formats.jpeg.segments.GenericSegment
org.apache.commons.imaging.formats.jpeg.segments.ComSegment
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionComSegment
(int marker, byte[] segmentData) ComSegment
(int marker, int markerLength, InputStream is) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Returns a copy of the comment.Methods inherited from class org.apache.commons.imaging.formats.jpeg.segments.GenericSegment
dump, dump, getSegmentData, getSegmentData, getSegmentDataAsString
Methods inherited from class org.apache.commons.imaging.formats.jpeg.segments.Segment
getSegmentType, toString
Methods inherited from class org.apache.commons.imaging.common.BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
Constructor Details
-
ComSegment
public ComSegment(int marker, byte[] segmentData) -
ComSegment
- Throws:
IOException
-
-
Method Details
-
getComment
public byte[] getComment()Returns a copy of the comment.- Returns:
- a copy of the comment's bytes
-
getDescription
- Specified by:
getDescription
in classSegment
-