Class SosSegment
- java.lang.Object
-
- org.apache.commons.imaging.common.BinaryFileParser
-
- org.apache.commons.imaging.formats.jpeg.segments.AbstractSegment
-
- org.apache.commons.imaging.formats.jpeg.segments.SosSegment
-
public final class SosSegment extends AbstractSegment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSosSegment.Component
-
Field Summary
Fields Modifier and Type Field Description private SosSegment.Component[]componentsintendOfSpectralSelectionprivate static java.util.logging.LoggerLOGGERintnumberOfComponentsintstartOfSpectralSelectionintsuccessiveApproximationBitHighintsuccessiveApproximationBitLow-
Fields inherited from class org.apache.commons.imaging.formats.jpeg.segments.AbstractSegment
length, marker
-
-
Constructor Summary
Constructors Constructor Description SosSegment(int marker, byte[] segmentData)SosSegment(int marker, int markerLength, java.io.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)Gets a component at the specified index.java.lang.StringgetDescription()Gets the description.-
Methods inherited from class org.apache.commons.imaging.formats.jpeg.segments.AbstractSegment
dump, getSegmentType, toString
-
Methods inherited from class org.apache.commons.imaging.common.BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
-
-
-
Field Detail
-
LOGGER
private static final java.util.logging.Logger LOGGER
-
numberOfComponents
public final int numberOfComponents
-
components
private final SosSegment.Component[] components
-
startOfSpectralSelection
public final int startOfSpectralSelection
-
endOfSpectralSelection
public final int endOfSpectralSelection
-
successiveApproximationBitHigh
public final int successiveApproximationBitHigh
-
successiveApproximationBitLow
public final int successiveApproximationBitLow
-
-
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)
Gets a component at the specified index.- Parameters:
index- the component index- Returns:
- the component
-
getDescription
public java.lang.String getDescription()
Description copied from class:AbstractSegmentGets the description.- Specified by:
getDescriptionin classAbstractSegment- Returns:
- the description.
-
-