Class JpegDecoder
java.lang.Object
org.apache.commons.imaging.common.BinaryFileParser
org.apache.commons.imaging.formats.jpeg.decoder.JpegDecoder
- All Implemented Interfaces:
JpegUtils.Visitor
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance with the default, big-endian, byte order. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbeginSos()decode(ByteSource byteSource) voidSets the decoder to treat incoming data as using the RGB color model.booleanvisitSegment(int marker, byte[] markerBytes, int segmentLength, byte[] segmentLengthBytes, byte[] segmentData) voidvisitSos(int marker, byte[] markerBytes, byte[] imageData) Methods inherited from class org.apache.commons.imaging.common.BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
Constructor Details
-
JpegDecoder
public JpegDecoder()Constructs a new instance with the default, big-endian, byte order.
-
-
Method Details
-
beginSos
- Specified by:
beginSosin interfaceJpegUtils.Visitor
-
decode
- Throws:
IOExceptionImagingException
-
setTiffRgb
Sets the decoder to treat incoming data as using the RGB color model. This extension to the JPEG specification is intended to support TIFF files that use JPEG compression. -
visitSegment
public boolean visitSegment(int marker, byte[] markerBytes, int segmentLength, byte[] segmentLengthBytes, byte[] segmentData) throws ImagingException, IOException - Specified by:
visitSegmentin interfaceJpegUtils.Visitor- Throws:
ImagingExceptionIOException
-
visitSos
- Specified by:
visitSosin interfaceJpegUtils.Visitor
-