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.GenericSegment
org.apache.commons.imaging.formats.jpeg.segments.ComSegment
-
Field Summary
Fields inherited from class org.apache.commons.imaging.formats.jpeg.segments.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.Methods inherited from class org.apache.commons.imaging.formats.jpeg.segments.GenericSegment
dump, dump, getSegmentData, getSegmentData, getSegmentDataAsStringMethods inherited from class org.apache.commons.imaging.formats.jpeg.segments.AbstractSegment
getSegmentType, toStringMethods inherited from class org.apache.commons.imaging.common.BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
Constructor Details
-
ComSegment
-
ComSegment
- Throws:
IOException
-
-
Method Details
-
getComment
Returns a copy of the comment.- Returns:
- a copy of the comment's bytes
-
getDescription
- Specified by:
getDescriptionin classAbstractSegment
-