Class SosSegment
- java.lang.Object
-
- org.apache.commons.imaging.common.BinaryFileParser
-
- org.apache.commons.imaging.formats.jpeg.segments.Segment
-
- org.apache.commons.imaging.formats.jpeg.segments.SosSegment
-
public class SosSegment extends Segment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSosSegment.Component
-
Field Summary
Fields Modifier and Type Field Description intendOfSpectralSelectionintnumberOfComponentsintstartOfSpectralSelectionintsuccessiveApproximationBitHighintsuccessiveApproximationBitLow
-
Constructor Summary
Constructors Constructor Description SosSegment(int marker, byte[] segmentData)SosSegment(int marker, int markerLength, InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SosSegment.Component[]getComponents()Returns a copy of all the components.SosSegment.ComponentgetComponents(int index)Return a component at the specified index.StringgetDescription()-
Methods inherited from class org.apache.commons.imaging.formats.jpeg.segments.Segment
dump, getSegmentType, toString
-
Methods inherited from class org.apache.commons.imaging.common.BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
-
-
-
Field Detail
-
numberOfComponents
public final int numberOfComponents
-
startOfSpectralSelection
public final int startOfSpectralSelection
-
endOfSpectralSelection
public final int endOfSpectralSelection
-
successiveApproximationBitHigh
public final int successiveApproximationBitHigh
-
successiveApproximationBitLow
public final int successiveApproximationBitLow
-
-
Constructor Detail
-
SosSegment
public SosSegment(int marker, byte[] segmentData) throws IOException- Throws:
IOException
-
SosSegment
public SosSegment(int marker, int markerLength, InputStream is) throws IOException- Throws:
IOException
-
-
Method Detail
-
getComponents
public SosSegment.Component[] getComponents()
Returns a copy of all the components.- Returns:
- all the components
-
getComponents
public SosSegment.Component getComponents(int index)
Return a component at the specified index.- Parameters:
index- the component index- Returns:
- the component
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin classSegment
-
-