Class App2Segment
- 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.AppnSegment
-
- org.apache.commons.imaging.formats.jpeg.segments.App2Segment
-
- All Implemented Interfaces:
java.lang.Comparable<App2Segment>
public final class App2Segment extends AppnSegment implements java.lang.Comparable<App2Segment>
-
-
Field Summary
Fields Modifier and Type Field Description intcurMarkerprivate byte[]iccBytesintnumMarkers-
Fields inherited from class org.apache.commons.imaging.formats.jpeg.segments.AbstractSegment
length, marker
-
-
Constructor Summary
Constructors Constructor Description App2Segment(int marker, byte[] segmentData)App2Segment(int marker, int markerLength, java.io.InputStream is2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(App2Segment other)booleanequals(java.lang.Object obj)byte[]getIccBytes()inthashCode()-
Methods inherited from class org.apache.commons.imaging.formats.jpeg.segments.AppnSegment
getDescription
-
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
-
-
-
-
Constructor Detail
-
App2Segment
public App2Segment(int marker, byte[] segmentData) throws ImagingException, java.io.IOException- Throws:
ImagingExceptionjava.io.IOException
-
App2Segment
public App2Segment(int marker, int markerLength, java.io.InputStream is2) throws ImagingException, java.io.IOException- Throws:
ImagingExceptionjava.io.IOException
-
-
Method Detail
-
compareTo
public int compareTo(App2Segment other)
- Specified by:
compareToin interfacejava.lang.Comparable<App2Segment>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getIccBytes
public byte[] getIccBytes()
- Returns:
- the iccBytes
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-