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
-
public class ComSegment extends GenericSegment
-
-
Constructor Summary
Constructors Constructor Description ComSegment(int marker, byte[] segmentData)
ComSegment(int marker, int markerLength, InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getComment()
Returns a copy of the comment.String
getDescription()
-
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 Detail
-
ComSegment
public ComSegment(int marker, byte[] segmentData)
-
ComSegment
public ComSegment(int marker, int markerLength, InputStream is) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getComment
public byte[] getComment()
Returns a copy of the comment.- Returns:
- a copy of the comment's bytes
-
getDescription
public String getDescription()
- Specified by:
getDescription
in classSegment
-
-