Class SofnSegment
- java.lang.Object
-
- org.apache.commons.imaging.common.BinaryFileParser
-
- org.apache.commons.imaging.formats.jpeg.segments.AbstractSegment
-
- org.apache.commons.imaging.formats.jpeg.segments.SofnSegment
-
public final class SofnSegment extends AbstractSegment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSofnSegment.Component
-
Field Summary
Fields Modifier and Type Field Description private SofnSegment.Component[]componentsintheightprivate static java.util.logging.LoggerLOGGERintnumberOfComponentsintprecisionintwidth-
Fields inherited from class org.apache.commons.imaging.formats.jpeg.segments.AbstractSegment
length, marker
-
-
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.ComponentgetComponents(int index)Returns the 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
-
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
-
-
Constructor Detail
-
SofnSegment
public SofnSegment(int marker, byte[] segmentData) throws java.io.IOException, ImagingException- Throws:
java.io.IOExceptionImagingException
-
SofnSegment
public SofnSegment(int marker, int markerLength, java.io.InputStream is) throws java.io.IOException, ImagingException- Throws:
java.io.IOExceptionImagingException
-
-
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()
Description copied from class:AbstractSegmentGets the description.- Specified by:
getDescriptionin classAbstractSegment- Returns:
- the description.
-
-