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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
beginSos()
decode
(ByteSource byteSource) void
Sets the decoder to treat incoming data as using the RGB color model.boolean
visitSegment
(int marker, byte[] markerBytes, int segmentLength, byte[] segmentLengthBytes, byte[] segmentData) void
visitSos
(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()
-
-
Method Details
-
beginSos
- Specified by:
beginSos
in interfaceJpegUtils.Visitor
-
decode
- Throws:
IOException
ImagingException
-
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:
visitSegment
in interfaceJpegUtils.Visitor
- Throws:
ImagingException
IOException
-
visitSos
- Specified by:
visitSos
in interfaceJpegUtils.Visitor
-