Class SofnSegment
- java.lang.Object
-
- org.apache.commons.imaging.common.BinaryFileParser
-
- org.apache.commons.imaging.formats.jpeg.segments.Segment
-
- org.apache.commons.imaging.formats.jpeg.segments.SofnSegment
-
public class SofnSegment extends Segment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SofnSegment.Component
-
Field Summary
Fields Modifier and Type Field Description private SofnSegment.Component[]
components
int
height
private static java.util.logging.Logger
LOGGER
int
numberOfComponents
int
precision
int
width
-
Constructor Summary
Constructors Constructor Description SofnSegment(int marker, byte[] segmentData)
SofnSegment(int marker, int markerLength, java.io.InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SofnSegment.Component[]
getComponents()
Returns a copy of all the components.SofnSegment.Component
getComponents(int index)
Returns the 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
-
width
public final int width
-
height
public final int height
-
numberOfComponents
public final int numberOfComponents
-
precision
public final int precision
-
components
private final SofnSegment.Component[] components
-
-
Method Detail
-
getComponents
public SofnSegment.Component[] getComponents()
Returns a copy of all the components.- Returns:
- the components
-
getComponents
public SofnSegment.Component getComponents(int index)
Returns the component at the specified index.- Parameters:
index
- the array index- Returns:
- the component
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in classSegment
-
-