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 class
SosSegment.Component
-
Field Summary
Fields Modifier and Type Field Description private SosSegment.Component[]
components
int
endOfSpectralSelection
private static java.util.logging.Logger
LOGGER
int
numberOfComponents
int
startOfSpectralSelection
int
successiveApproximationBitHigh
int
successiveApproximationBitLow
-
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.Component
getComponents(int index)
Return a component at the specified index.java.lang.String
getDescription()
-
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
-
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)
Return a component at the specified index.- Parameters:
index
- the component index- Returns:
- the component
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in classSegment
-
-