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 TypeFieldDescriptionfinal int
final int
final int
final int
Fields inherited from class org.apache.commons.imaging.formats.jpeg.segments.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 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 Details
-
width
-
height
-
numberOfComponents
-
precision
-
-
Constructor Details
-
SofnSegment
- Throws:
IOException
ImagingException
-
SofnSegment
public SofnSegment(int marker, int markerLength, InputStream is) throws IOException, ImagingException - Throws:
IOException
ImagingException
-
-
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:AbstractSegment
Gets the description.- Specified by:
getDescription
in classAbstractSegment
- Returns:
- the description.
-