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
-
Field Summary
Fields inherited from class AbstractSegment
length, marker -
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.Gets the description.Methods inherited from class AbstractGenericSegment
dump, dump, getSegmentData, getSegmentData, getSegmentDataAsStringMethods inherited from class AbstractSegment
getSegmentType, toStringMethods inherited from class 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
Description copied from class:AbstractSegmentGets the description.- Specified by:
getDescriptionin classAbstractSegment- Returns:
- the description.
-