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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SofnSegment.Component[]final intprivate static final Loggerfinal intfinal intfinal intFields inherited from class AbstractSegment
length, marker -
Constructor Summary
ConstructorsConstructorDescriptionSofnSegment(int marker, byte[] segmentData) SofnSegment(int marker, int markerLength, InputStream is) -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of all the components.getComponents(int index) Returns the component at the specified index.Gets the description.Methods inherited from class AbstractSegment
dump, getSegmentType, toStringMethods inherited from class BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
Field Details
-
LOGGER
-
width
public final int width -
height
public final int height -
numberOfComponents
public final int numberOfComponents -
precision
public final int precision -
components
-
-
Constructor Details
-
SofnSegment
- Throws:
IOExceptionImagingException
-
SofnSegment
public SofnSegment(int marker, int markerLength, InputStream is) throws IOException, ImagingException - Throws:
IOExceptionImagingException
-
-
Method Details
-
getComponents
Returns a copy of all the components.- Returns:
- the components
-
getComponents
Returns the component at the specified index.- Parameters:
index- the array index- Returns:
- the component
-
getDescription
Description copied from class:AbstractSegmentGets the description.- Specified by:
getDescriptionin classAbstractSegment- Returns:
- the description.
-